History

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.

Arjan van de Ven committed 17 years ago

Commit fd39e051 parent a79d7db1 file · +7 −0Browse files

Unified · Split

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