diff options
Diffstat (limited to 'tools/perf/util/parse-events.y')
-rw-r--r-- | tools/perf/util/parse-events.y | 10 |
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 | | |
62 | event_def | 62 | event_def |
63 | 63 | ||
64 | event_def: event_legacy_symbol | | 64 | event_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 | ||
72 | event_pmu: | ||
73 | PE_NAME '/' event_config '/' | ||
74 | { | ||
75 | ABORT_ON(parse_events_add_pmu(list, idx, $1, $3)); | ||
76 | parse_events__free_terms($3); | ||
77 | } | ||
78 | |||
71 | event_legacy_symbol: | 79 | event_legacy_symbol: |
72 | PE_VALUE_SYM '/' event_config '/' | 80 | PE_VALUE_SYM '/' event_config '/' |
73 | { | 81 | { |