Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arjan van de Ven and committed by
Ingo Molnar
fd39e055 a79d7db9

+7
+7
tools/perf/util/event.h
··· 60 60 u64 id; 61 61 }; 62 62 63 + struct sample_event{ 64 + struct perf_event_header header; 65 + u64 array[]; 66 + }; 67 + 68 + 63 69 typedef union event_union { 64 70 struct perf_event_header header; 65 71 struct ip_event ip; ··· 74 68 struct fork_event fork; 75 69 struct lost_event lost; 76 70 struct read_event read; 71 + struct sample_event sample; 77 72 } event_t; 78 73 79 74 struct map {