Skip to content

Commit 4b77a72

Browse files
Mike GalbraithIngo Molnar
authored andcommitted
perf sched: Add --input=file option to builtin-sched.c
perf sched record passes unparsed args on to perf record, so specifying an output file via perf sched record -o FILE (cmd) just works. Ergo, provide an option to specify input file as well. Also add the missing 'map' command to help. Signed-off-by: Mike Galbraith <efault@gmx.de> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1253254944.20589.11.camel@marge.simson.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 1281a49 commit 4b77a72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/perf/builtin-sched.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,11 +1859,13 @@ static void __cmd_replay(void)
18591859

18601860

18611861
static const char * const sched_usage[] = {
1862-
"perf sched [<options>] {record|latency|replay|trace}",
1862+
"perf sched [<options>] {record|latency|map|replay|trace}",
18631863
NULL
18641864
};
18651865

18661866
static const struct option sched_options[] = {
1867+
OPT_STRING('i', "input", &input_name, "file",
1868+
"input file name"),
18671869
OPT_BOOLEAN('v', "verbose", &verbose,
18681870
"be more verbose (show symbol address, etc)"),
18691871
OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,

0 commit comments

Comments
 (0)