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
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 { · 2 unmodified lines
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 {