summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2011-07-14 11:25:32 +0200
committerIngo Molnar <mingo@elte.hu>2011-07-21 10:41:11 +0200
commitf120f9d51be3a7db8991e7b78dc08bab5f8ab8f3 (patch)
tree237926a6231f4009015b8ce4119935a455069395 /tools/perf/builtin-top.c
parentadc4bf9955856f8aa081ba613dbf56ffd664f0b7 (diff)
downloadblackbird-op-linux-f120f9d51be3a7db8991e7b78dc08bab5f8ab8f3.tar.gz
blackbird-op-linux-f120f9d51be3a7db8991e7b78dc08bab5f8ab8f3.zip
perf tools: De-opt the parse_events function
Moving out the option parameter from parse_events function, and adding new parse_events_option function instead. The option parameter is used only to carry "struct perf_evlist" pointer for chaining new events. Putting it away, enable us to call parse_events from other places without using the option parameter. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: acme@redhat.com Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Link: http://lkml.kernel.org/r/1310635534-4013-2-git-send-email-jolsa@redhat.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index f2f3f4937aa2..a43433f08300 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -990,7 +990,7 @@ static const char * const top_usage[] = {
static const struct option options[] = {
OPT_CALLBACK('e', "event", &top.evlist, "event",
"event selector. use 'perf list' to list available events",
- parse_events),
+ parse_events_option),
OPT_INTEGER('c', "count", &default_interval,
"event period to sample"),
OPT_INTEGER('p', "pid", &top.target_pid,
OpenPOWER on IntegriCloud