diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-18 13:35:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-18 14:01:52 -0500 |
commit | 0422a4fc2c6a41c3d4184984797512af2650014e (patch) | |
tree | 9360c59733c31e1bbf160c4d089942c04082cfb4 /tools/perf/builtin-trace.c | |
parent | b5b60fda1e462a849bc37dfbace2888191be82cc (diff) |
perf diff: Fix usage array, it must end with a NULL entry
Fixing this:
[acme@doppio linux-2.6-tip]$ perf diff --hell
Error: unknown option `hell'
usage: perf diff [<options>] [old_file] [new_file]
Segmentation fault
[acme@doppio linux-2.6-tip]$
Also go over the other such arrays to check if they all were OK,
they are, but there were some minor changes to do like making
one static and renaming another to match the command it refers
to.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1261161358-23959-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index e2285e28720f..574a215e800b 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -512,7 +512,7 @@ static char *get_script_path(const char *script_root, const char *suffix) | |||
512 | return path; | 512 | return path; |
513 | } | 513 | } |
514 | 514 | ||
515 | static const char * const annotate_usage[] = { | 515 | static const char * const trace_usage[] = { |
516 | "perf trace [<options>] <command>", | 516 | "perf trace [<options>] <command>", |
517 | NULL | 517 | NULL |
518 | }; | 518 | }; |
@@ -581,7 +581,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) | |||
581 | 581 | ||
582 | setup_scripting(); | 582 | setup_scripting(); |
583 | 583 | ||
584 | argc = parse_options(argc, argv, options, annotate_usage, | 584 | argc = parse_options(argc, argv, options, trace_usage, |
585 | PARSE_OPT_STOP_AT_NON_OPTION); | 585 | PARSE_OPT_STOP_AT_NON_OPTION); |
586 | 586 | ||
587 | if (symbol__init() < 0) | 587 | if (symbol__init() < 0) |