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)
commit2073ad3326b7e4577af3d6789edd03df79519d21
treef0292d8c2e3b783df00704b867d5a86048569553
parentb4229e9d4cac2295f8f04ec26acd571a391c6c37
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