From: Mike Galbraith Date: Fri, 18 Sep 2009 06:22:24 +0000 (+0200) Subject: perf sched: Add --input=file option to builtin-sched.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b77a7297795229eca96c41e1709a3c87909fabe;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Peter Zijlstra LKML-Reference: <1253254944.20589.11.camel@marge.simson.net> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 9e04827d16be..275d79c6627a 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -1859,11 +1859,13 @@ static void __cmd_replay(void) static const char * const sched_usage[] = { - "perf sched [] {record|latency|replay|trace}", + "perf sched [] {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,