]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Factor out PMU matching in parser
authorAndi Kleen <ak@linux.intel.com>
Mon, 20 Mar 2017 20:17:02 +0000 (13:17 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Mar 2017 19:07:40 +0000 (16:07 -0300)
commiteee52ba96012a32e0f3fa5c94865e921af678a0c
treef0292d8c2e3b783df00704b867d5a86048569553
parentb9a8a5cd6725f3ce6a5e49688d8d7ffe39ed4fe2
perf tools: Factor out PMU matching in parser

Factor out the PMU name matching in the event parser into a separate
function, to use the same code for other grammar rules later.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170320201711.14142-5-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y