projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9edc2
)
perf trace: Add OPT_END to option array of perf-trace
author
Masami Hiramatsu
<
[email protected]
>
Fri, 21 Aug 2009 18:56:03 +0000
(14:56 -0400)
committer
Ingo Molnar
<
[email protected]
>
Fri, 21 Aug 2009 19:42:43 +0000
(21:42 +0200)
Add OPT_END to option array of perf-trace for fixing a SEGV bug when
showing perf-trace help message.
Without this patch;
./perf trace -h
usage: perf trace [<options>] <command>
-D, --dump-raw-trace dump raw trace in ASCII
-v, --verbose be more verbose (show symbol address, etc)
-f, Segmentation fault
With this patch:
./perf trace -h
usage: perf trace [<options>] <command>
-D, --dump-raw-trace dump raw trace in ASCII
-v, --verbose be more verbose (show symbol address, etc)
Signed-off-by: Masami Hiramatsu <
[email protected]
>
Cc: systemtap <
[email protected]
>
Cc: DLE <
[email protected]
>
Cc: Masami Hiramatsu <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Xiao Guangrong <
[email protected]
>
Cc: Zhaolei <
[email protected]
>
Cc: Li Zefan <
[email protected]
>
Cc: Lai Jiangshan <
[email protected]
>
Cc: Tom Zanussi <
[email protected]
>
LKML-Reference: <
20090821185603
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-trace.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-trace.c
b/tools/perf/builtin-trace.c
index 88eef71bce6d63f7fd8d338e6979f58b0901d5ec..dd3c2e7c9a18e7639d3dc49166c703554e6cee3e 100644
(file)
--- a/
tools/perf/builtin-trace.c
+++ b/
tools/perf/builtin-trace.c
@@
-257,6
+257,7
@@
static const struct option options[] = {
"dump raw trace in ASCII"),
OPT_BOOLEAN('v', "verbose", &verbose,
"be more verbose (show symbol address, etc)"),
+ OPT_END()
};
int cmd_trace(int argc, const char **argv, const char *prefix __used)