aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2009-09-12 01:53:00 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-19 05:42:12 -0400
commitfd39e055c4fefa4553efc9030f9903afdc6ee323 (patch)
tree0fa05c9b2ea8e8a406cba5638668bd175d69984a /tools/perf
parenta79d7db9fdb0037925ffa31f6ff9b189ff75d235 (diff)
perf: Add a sample_event type to the event_union
Add a sample_event type to the event_union so that raw samples can be processed easily. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20090912130511.411434b5@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 28a579f8fa8e..018d414a09d1 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -60,6 +60,12 @@ struct read_event {
60 u64 id; 60 u64 id;
61}; 61};
62 62
63struct sample_event{
64 struct perf_event_header header;
65 u64 array[];
66};
67
68
63typedef union event_union { 69typedef union event_union {
64 struct perf_event_header header; 70 struct perf_event_header header;
65 struct ip_event ip; 71 struct ip_event ip;
@@ -68,6 +74,7 @@ typedef union event_union {
68 struct fork_event fork; 74 struct fork_event fork;
69 struct lost_event lost; 75 struct lost_event lost;
70 struct read_event read; 76 struct read_event read;
77 struct sample_event sample;
71} event_t; 78} event_t;
72 79
73struct map { 80struct map {