diff options
Diffstat (limited to 'tools/perf/util/event.c')
| -rw-r--r-- | tools/perf/util/event.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index cce006ec8f05..50771b5813ee 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
| @@ -7,6 +7,23 @@ | |||
| 7 | #include "strlist.h" | 7 | #include "strlist.h" |
| 8 | #include "thread.h" | 8 | #include "thread.h" |
| 9 | 9 | ||
| 10 | const char *event__name[] = { | ||
| 11 | [0] = "TOTAL", | ||
| 12 | [PERF_RECORD_MMAP] = "MMAP", | ||
| 13 | [PERF_RECORD_LOST] = "LOST", | ||
| 14 | [PERF_RECORD_COMM] = "COMM", | ||
| 15 | [PERF_RECORD_EXIT] = "EXIT", | ||
| 16 | [PERF_RECORD_THROTTLE] = "THROTTLE", | ||
| 17 | [PERF_RECORD_UNTHROTTLE] = "UNTHROTTLE", | ||
| 18 | [PERF_RECORD_FORK] = "FORK", | ||
| 19 | [PERF_RECORD_READ] = "READ", | ||
| 20 | [PERF_RECORD_SAMPLE] = "SAMPLE", | ||
| 21 | [PERF_RECORD_HEADER_ATTR] = "ATTR", | ||
| 22 | [PERF_RECORD_HEADER_EVENT_TYPE] = "EVENT_TYPE", | ||
| 23 | [PERF_RECORD_HEADER_TRACING_DATA] = "TRACING_DATA", | ||
| 24 | [PERF_RECORD_HEADER_BUILD_ID] = "BUILD_ID", | ||
| 25 | }; | ||
| 26 | |||
| 10 | static pid_t event__synthesize_comm(pid_t pid, int full, | 27 | static pid_t event__synthesize_comm(pid_t pid, int full, |
| 11 | event__handler_t process, | 28 | event__handler_t process, |
| 12 | struct perf_session *session) | 29 | struct perf_session *session) |
| @@ -368,7 +385,7 @@ int event__process_comm(event_t *self, struct perf_session *session) | |||
| 368 | int event__process_lost(event_t *self, struct perf_session *session) | 385 | int event__process_lost(event_t *self, struct perf_session *session) |
| 369 | { | 386 | { |
| 370 | dump_printf(": id:%Ld: lost:%Ld\n", self->lost.id, self->lost.lost); | 387 | dump_printf(": id:%Ld: lost:%Ld\n", self->lost.id, self->lost.lost); |
| 371 | session->hists.stats.lost += self->lost.lost; | 388 | session->hists.stats.total_lost += self->lost.lost; |
| 372 | return 0; | 389 | return 0; |
| 373 | } | 390 | } |
| 374 | 391 | ||
