diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 04d2f0a96674..8a407f3e286f 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -60,7 +60,7 @@ static struct event_symbol event_symbols[] = { | |||
60 | #define PERF_EVENT_TYPE(config) __PERF_EVENT_FIELD(config, TYPE) | 60 | #define PERF_EVENT_TYPE(config) __PERF_EVENT_FIELD(config, TYPE) |
61 | #define PERF_EVENT_ID(config) __PERF_EVENT_FIELD(config, EVENT) | 61 | #define PERF_EVENT_ID(config) __PERF_EVENT_FIELD(config, EVENT) |
62 | 62 | ||
63 | static const char *hw_event_names[] = { | 63 | static const char *hw_event_names[PERF_COUNT_HW_MAX] = { |
64 | "cycles", | 64 | "cycles", |
65 | "instructions", | 65 | "instructions", |
66 | "cache-references", | 66 | "cache-references", |
@@ -68,10 +68,11 @@ static const char *hw_event_names[] = { | |||
68 | "branches", | 68 | "branches", |
69 | "branch-misses", | 69 | "branch-misses", |
70 | "bus-cycles", | 70 | "bus-cycles", |
71 | "stalled-cycles", | 71 | "stalled-cycles-frontend", |
72 | "stalled-cycles-backend", | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | static const char *sw_event_names[] = { | 75 | static const char *sw_event_names[PERF_COUNT_SW_MAX] = { |
75 | "cpu-clock", | 76 | "cpu-clock", |
76 | "task-clock", | 77 | "task-clock", |
77 | "page-faults", | 78 | "page-faults", |