Commit fd39e055 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Ingo Molnar

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: default avatarArjan van de Ven <arjan@linux.intel.com>
Acked-by: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
parent a79d7db9
...@@ -60,6 +60,12 @@ struct read_event { ...@@ -60,6 +60,12 @@ struct read_event {
u64 id; u64 id;
}; };
struct sample_event{
struct perf_event_header header;
u64 array[];
};
typedef union event_union { typedef union event_union {
struct perf_event_header header; struct perf_event_header header;
struct ip_event ip; struct ip_event ip;
...@@ -68,6 +74,7 @@ typedef union event_union { ...@@ -68,6 +74,7 @@ typedef union event_union {
struct fork_event fork; struct fork_event fork;
struct lost_event lost; struct lost_event lost;
struct read_event read; struct read_event read;
struct sample_event sample;
} event_t; } event_t;
struct map { struct map {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment