diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/parse-events.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index aed70901df24..5184959e0615 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -428,7 +428,7 @@ static const char * const event_type_descriptors[] = { | |||
428 | void print_events(void) | 428 | void print_events(void) |
429 | { | 429 | { |
430 | struct event_symbol *syms = event_symbols; | 430 | struct event_symbol *syms = event_symbols; |
431 | unsigned int i, type, prev_type = -1; | 431 | unsigned int i, type, op, prev_type = -1; |
432 | char name[40]; | 432 | char name[40]; |
433 | 433 | ||
434 | fprintf(stderr, "\n"); | 434 | fprintf(stderr, "\n"); |
@@ -453,6 +453,21 @@ void print_events(void) | |||
453 | } | 453 | } |
454 | 454 | ||
455 | fprintf(stderr, "\n"); | 455 | fprintf(stderr, "\n"); |
456 | for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) { | ||
457 | for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) { | ||
458 | /* skip invalid cache type */ | ||
459 | if (!is_cache_op_valid(type, op)) | ||
460 | continue; | ||
461 | |||
462 | for (i = 0; i < PERF_COUNT_HW_CACHE_RESULT_MAX; i++) { | ||
463 | fprintf(stderr, " %-40s [%s]\n", | ||
464 | event_cache_name(type, op, i), | ||
465 | event_type_descriptors[4]); | ||
466 | } | ||
467 | } | ||
468 | } | ||
469 | |||
470 | fprintf(stderr, "\n"); | ||
456 | fprintf(stderr, " %-40s [raw hardware event descriptor]\n", | 471 | fprintf(stderr, " %-40s [raw hardware event descriptor]\n", |
457 | "rNNN"); | 472 | "rNNN"); |
458 | fprintf(stderr, "\n"); | 473 | fprintf(stderr, "\n"); |