perf sched: Add --input=file option to builtin-sched.c
authorMike Galbraith <[email protected]>
Fri, 18 Sep 2009 06:22:24 +0000 (08:22 +0200)
committerIngo Molnar <[email protected]>
Fri, 18 Sep 2009 06:36:06 +0000 (08:36 +0200)
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 <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
LKML-Reference: <1253254944[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/builtin-sched.c

index 9e04827d16be07e1249d5652fa8abe8b52105cc3..275d79c6627ad3555ebde0de07ae8ab63e3314cc 100644 (file)
@@ -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,