aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.y
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/parse-events.y')
-rw-r--r--tools/perf/util/parse-events.y10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y
index c88c08e4e79d..3a530193f5a8 100644
--- a/tools/perf/util/parse-events.y
+++ b/tools/perf/util/parse-events.y
@@ -61,13 +61,21 @@ event_def PE_MODIFIER_EVENT
61| 61|
62event_def 62event_def
63 63
64event_def: event_legacy_symbol | 64event_def: event_pmu |
65 event_legacy_symbol |
65 event_legacy_cache sep_dc | 66 event_legacy_cache sep_dc |
66 event_legacy_mem | 67 event_legacy_mem |
67 event_legacy_tracepoint sep_dc | 68 event_legacy_tracepoint sep_dc |
68 event_legacy_numeric sep_dc | 69 event_legacy_numeric sep_dc |
69 event_legacy_raw sep_dc 70 event_legacy_raw sep_dc
70 71
72event_pmu:
73PE_NAME '/' event_config '/'
74{
75 ABORT_ON(parse_events_add_pmu(list, idx, $1, $3));
76 parse_events__free_terms($3);
77}
78
71event_legacy_symbol: 79event_legacy_symbol:
72PE_VALUE_SYM '/' event_config '/' 80PE_VALUE_SYM '/' event_config '/'
73{ 81{