diff options
author | Jiri Olsa <jolsa@redhat.com> | 2011-07-14 05:25:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-07-21 04:41:11 -0400 |
commit | f120f9d51be3a7db8991e7b78dc08bab5f8ab8f3 (patch) | |
tree | 237926a6231f4009015b8ce4119935a455069395 /tools/perf/builtin-stat.c | |
parent | adc4bf9955856f8aa081ba613dbf56ffd664f0b7 (diff) |
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-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 1d08c8084cc4..1ad04ce29c34 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -1032,7 +1032,7 @@ static int stat__set_big_num(const struct option *opt __used, | |||
1032 | static const struct option options[] = { | 1032 | static const struct option options[] = { |
1033 | OPT_CALLBACK('e', "event", &evsel_list, "event", | 1033 | OPT_CALLBACK('e', "event", &evsel_list, "event", |
1034 | "event selector. use 'perf list' to list available events", | 1034 | "event selector. use 'perf list' to list available events", |
1035 | parse_events), | 1035 | parse_events_option), |
1036 | OPT_CALLBACK(0, "filter", &evsel_list, "filter", | 1036 | OPT_CALLBACK(0, "filter", &evsel_list, "filter", |
1037 | "event filter", parse_filter), | 1037 | "event filter", parse_filter), |
1038 | OPT_BOOLEAN('i', "no-inherit", &no_inherit, | 1038 | OPT_BOOLEAN('i', "no-inherit", &no_inherit, |