Skip to content

Commit

Permalink
perf sched: Add --input=file option to builtin-sched.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Sep 18, 2009
1 parent 1281a49 commit 4b77a72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/perf/builtin-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1859,11 +1859,13 @@ static void __cmd_replay(void)


static const char * const sched_usage[] = {
"perf sched [<options>] {record|latency|replay|trace}",
"perf sched [<options>] {record|latency|map|replay|trace}",
NULL
};

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

0 comments on commit 4b77a72

Please sign in to comment.