summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2009-09-12 07:53:00 +0200
committerIngo Molnar <mingo@elte.hu>2009-09-19 11:42:12 +0200
commitfd39e055c4fefa4553efc9030f9903afdc6ee323 (patch)
tree0fa05c9b2ea8e8a406cba5638668bd175d69984a /tools
parenta79d7db9fdb0037925ffa31f6ff9b189ff75d235 (diff)
downloadop-kernel-dev-fd39e055c4fefa4553efc9030f9903afdc6ee323.zip
op-kernel-dev-fd39e055c4fefa4553efc9030f9903afdc6ee323.tar.gz
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 28a579f..018d414 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -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;
@@ -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 {
OpenPOWER on IntegriCloud