Skip to content

Commit

Permalink
perf: Add a sample_event type to the event_union
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Sep 19, 2009
1 parent a79d7db commit fd39e05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/perf/util/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit fd39e05

Please sign in to comment.