perf tools: Add OPT_END to option array of perf-trace
PATCH 1/1 perf tools: Add OPT_END to option array of perf-trace
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)
---
tools/perf/builtin-trace.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/builtin-trace.c +1 -0
@@ -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 )
Signature · 7 lines
Masami Hiramatsu Software Engineer Hitachi Computer Products (America), Inc. Software Solutions Division e-mail: [email protected]
Ingo Molnar
AppliedQuoted 2 lines · Masami Hiramatsu
Add
OPT_ENDto option array of perf-trace for fixing a SEGV bug when showing perf-trace help message.
applied, thanks!
Ingo
[tip:perfcounters/tracing] perf trace: Add OPT_END to option array of perf-trace
In reply to Masami HiramatsuCommit-ID: 1909629fb1ec9800cf2cb0091870d6a1c1ca665f Gitweb: http://git.kernel.org/tip/1909629fb1ec9800cf2cb0091870d6a1c1ca665f Author: Masami Hiramatsu <[email protected]> AuthorDate: Fri, 21 Aug 2009 14:56:03 -0400 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 21 Aug 2009 21:42:43 +0200
perf trace: Add OPT_END to option array of perf-trace
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)
LKML-Reference: <[email protected]>
--- tools/perf/builtin-trace.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/builtin-trace.c +1 -0
@@ -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 )