aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2009-09-18 02:22:24 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-18 02:36:06 -0400
commit4b77a7297795229eca96c41e1709a3c87909fabe (patch)
tree89c4a457b5d43d43c3fa68cb8c9d661167b4436f /tools/perf
parent1281a49b7aa865a1f0d60e2b28410e6234fc686b (diff)
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>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-sched.c4
1 files changed, 3 insertions, 1 deletions
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)
1859 1859
1860 1860
1861static const char * const sched_usage[] = { 1861static const char * const sched_usage[] = {
1862 "perf sched [<options>] {record|latency|replay|trace}", 1862 "perf sched [<options>] {record|latency|map|replay|trace}",
1863 NULL 1863 NULL
1864}; 1864};
1865 1865
1866static const struct option sched_options[] = { 1866static const struct option sched_options[] = {
1867 OPT_STRING('i', "input", &input_name, "file",
1868 "input file name"),
1867 OPT_BOOLEAN('v', "verbose", &verbose, 1869 OPT_BOOLEAN('v', "verbose", &verbose,
1868 "be more verbose (show symbol address, etc)"), 1870 "be more verbose (show symbol address, etc)"),
1869 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace, 1871 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,