]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
perf probe: Make --funcs option exclusive
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 23 Apr 2015 13:46:12 +0000 (22:46 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Apr 2015 13:38:02 +0000 (10:38 -0300)
commitb3ac032b7a76fea678de225d26ae04d10e47f0ac
tree94de9c9eb1ca198aac2b9776a046c5c9e2faffbc
parent87d650be1dcc9bd9bb200e73b985ddb740d067bc
perf probe: Make --funcs option exclusive

The --funcs option should be given exclusively.  This adds
PARSE_OPT_EXCUSIVE flag on --funcs (-F) option.

Without this, 'perf probe --funcs -l' just shows the list of probes.

With this, it shows error message correctly.

This also fixes the help message and the documentation.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150423134612.26128.58189.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-probe.txt
tools/perf/builtin-probe.c