]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix modifier to be applied on correct events
authorJiri Olsa <jolsa@redhat.com>
Tue, 20 Mar 2012 18:15:40 +0000 (19:15 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Mar 2012 18:11:38 +0000 (15:11 -0300)
commit4fbbf02cb13f1723193f2c45c7cdb77f1f4dfc78
tree9b40166a00566af8bef1c388d51b8863a92cc6fe
parent58c9fa998c677d289d24f5c4507a4d47719664b2
perf tools: Fix modifier to be applied on correct events

The event modifier needs to be applied only on the event definition it
is attached to.

The current state is that in case of multiple events definition (in
single '-e' option, separated by ',') all will get modifier of the last
one.

Fixing this by adding separated list for each event definition, so the
modifier is applied only to proper event(s). Added automated test to
catch this, plus some other modifier tests.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1332267341-26338-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-test.c
tools/perf/util/parse-events-bison.c
tools/perf/util/parse-events-bison.h
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y