Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188263
b: refs/heads/master
c: cb8f093
h: refs/heads/master
i:
  188261: 2f0d996
  188259: 6b5c01b
  188255: d529b45
v: v3
  • Loading branch information
Eric B Munson authored and Ingo Molnar committed Mar 10, 2010
1 parent ae4af8a commit 3c90975
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d403d0acc9c5afa679a3f61e71489530d7fa0606
refs/heads/master: cb8f09393646c5058056db771583c86e0ed1d92f
9 changes: 9 additions & 0 deletions trunk/tools/perf/util/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c90975

Please sign in to comment.