]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: De-opt the parse_events function
authorJiri Olsa <jolsa@redhat.com>
Thu, 14 Jul 2011 09:25:32 +0000 (11:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Jul 2011 08:41:11 +0000 (10:41 +0200)
commit96e3876a40fc7af949320cfd63a86bebd63e6b29
tree237926a6231f4009015b8ce4119935a455069395
parentfc2feceddeeb246ddeb699cb287d6692438ea973
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>
tools/perf/builtin-record.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h