diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-25 05:19:45 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:38:56 -0500 |
commit | d20deb64e0490ee9442b5181bc08a62d2cadcb90 (patch) | |
tree | afdb3f6fc9abbce9d0a96b7049d1f8121178a356 /tools/perf/util/top.h | |
parent | 7009cc34b964939815160d7de64cf0215cdbf8bb (diff) |
perf tools: Pass tool context in the the perf_event_ops functions
So that we don't need to have that many globals.
Next steps will remove the 'session' pointer, that in most cases is
not needed.
Then we can rename perf_event_ops to 'perf_tool' that better describes
this class hierarchy.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-wp4djox7x6w1i2bab1pt4xxp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/top.h')
-rw-r--r-- | tools/perf/util/top.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h index 399650967958..44eda6fc6b33 100644 --- a/tools/perf/util/top.h +++ b/tools/perf/util/top.h | |||
@@ -2,14 +2,15 @@ | |||
2 | #define __PERF_TOP_H 1 | 2 | #define __PERF_TOP_H 1 |
3 | 3 | ||
4 | #include "types.h" | 4 | #include "types.h" |
5 | #include "session.h" | ||
5 | #include "../perf.h" | 6 | #include "../perf.h" |
6 | #include <stddef.h> | 7 | #include <stddef.h> |
7 | 8 | ||
8 | struct perf_evlist; | 9 | struct perf_evlist; |
9 | struct perf_evsel; | 10 | struct perf_evsel; |
10 | struct perf_session; | ||
11 | 11 | ||
12 | struct perf_top { | 12 | struct perf_top { |
13 | struct perf_event_ops ops; | ||
13 | struct perf_evlist *evlist; | 14 | struct perf_evlist *evlist; |
14 | /* | 15 | /* |
15 | * Symbols will be added here in perf_event__process_sample and will | 16 | * Symbols will be added here in perf_event__process_sample and will |