mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
perf session: Add storage for seperating event types in report
This patch adds the structures necessary to count each event type independently in perf report. Signed-off-by: Eric B Munson <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
d403d0acc9
commit
cb8f093936
3 changed files with 11 additions and 0 deletions
|
|
@ -99,6 +99,15 @@ struct events_stats {
|
|||
u64 lost;
|
||||
};
|
||||
|
||||
struct event_stat_id {
|
||||
struct rb_node rb_node;
|
||||
struct rb_root hists;
|
||||
struct events_stats stats;
|
||||
u64 config;
|
||||
u64 event_stream;
|
||||
u32 type;
|
||||
};
|
||||
|
||||
void event__print_totals(void);
|
||||
|
||||
struct perf_session;
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ struct perf_session *perf_session__new(const char *filename, int mode, bool forc
|
|||
|
||||
memcpy(self->filename, filename, len);
|
||||
self->threads = RB_ROOT;
|
||||
self->stats_by_id = RB_ROOT;
|
||||
self->last_match = NULL;
|
||||
self->mmap_window = 32;
|
||||
self->cwd = NULL;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ struct perf_session {
|
|||
struct thread *last_match;
|
||||
struct map *vmlinux_maps[MAP__NR_TYPES];
|
||||
struct events_stats events_stats;
|
||||
struct rb_root stats_by_id;
|
||||
unsigned long event_total[PERF_RECORD_MAX];
|
||||
unsigned long unknown_events;
|
||||
struct rb_root hists;
|
||||
|
|
|
|||
Loading…
Reference in a new issue