perf: Add a sample_event type to the event_union
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 12 Sep 2009 05:53:00 +0000 (07:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Sep 2009 09:42:12 +0000 (11:42 +0200)
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>
tools/perf/util/event.h

index 28a579f8fa8ece2de39d84f43378fd22da309cf7..018d414a09d171d0d72ec8ec482c00fc09e5962e 100644 (file)
@@ -60,6 +60,12 @@ struct read_event {
        u64 id;
 };
 
+struct sample_event{
+       struct perf_event_header        header;
+       u64 array[];
+};
+
+
 typedef union event_union {
        struct perf_event_header        header;
        struct ip_event                 ip;
@@ -68,6 +74,7 @@ typedef union event_union {
        struct fork_event               fork;
        struct lost_event               lost;
        struct read_event               read;
+       struct sample_event             sample;
 } event_t;
 
 struct map {