Skip to content

Commit fd39e05

Browse files
fenrus75Ingo Molnar
authored andcommitted
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>
1 parent a79d7db commit fd39e05

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tools/perf/util/event.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ struct read_event {
6060
u64 id;
6161
};
6262

63+
struct sample_event{
64+
struct perf_event_header header;
65+
u64 array[];
66+
};
67+
68+
6369
typedef union event_union {
6470
struct perf_event_header header;
6571
struct ip_event ip;
@@ -68,6 +74,7 @@ typedef union event_union {
6874
struct fork_event fork;
6975
struct lost_event lost;
7076
struct read_event read;
77+
struct sample_event sample;
7178
} event_t;
7279

7380
struct map {

0 commit comments

Comments
 (0)