diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-05-05 06:41:45 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-05 11:47:40 -0400 |
commit | 0776eb59354f8b848e5738a612c272d8f48de9bf (patch) | |
tree | b7ae32a9af86bd992b83574dbcb92f0ced664289 /tools/perf/util | |
parent | 36446f4bfe613ad1da00f06081d410d62c07d334 (diff) |
perf tools: Move sample data structures from perf.h
Into util/event.h header where all sample data structures
are defined.
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1399293219-8732-7-git-send-email-jolsa@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/event.h | 24 | ||||
-rw-r--r-- | tools/perf/util/symbol.h | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 38457d447a13..d970232cb270 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -112,6 +112,30 @@ struct sample_read { | |||
112 | }; | 112 | }; |
113 | }; | 113 | }; |
114 | 114 | ||
115 | struct ip_callchain { | ||
116 | u64 nr; | ||
117 | u64 ips[0]; | ||
118 | }; | ||
119 | |||
120 | struct branch_flags { | ||
121 | u64 mispred:1; | ||
122 | u64 predicted:1; | ||
123 | u64 in_tx:1; | ||
124 | u64 abort:1; | ||
125 | u64 reserved:60; | ||
126 | }; | ||
127 | |||
128 | struct branch_entry { | ||
129 | u64 from; | ||
130 | u64 to; | ||
131 | struct branch_flags flags; | ||
132 | }; | ||
133 | |||
134 | struct branch_stack { | ||
135 | u64 nr; | ||
136 | struct branch_entry entries[0]; | ||
137 | }; | ||
138 | |||
115 | struct perf_sample { | 139 | struct perf_sample { |
116 | u64 ip; | 140 | u64 ip; |
117 | u32 pid, tid; | 141 | u32 pid, tid; |
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index ae94e006a52d..33ede53fa6b9 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <byteswap.h> | 12 | #include <byteswap.h> |
13 | #include <libgen.h> | 13 | #include <libgen.h> |
14 | #include "build-id.h" | 14 | #include "build-id.h" |
15 | #include "event.h" | ||
15 | 16 | ||
16 | #ifdef HAVE_LIBELF_SUPPORT | 17 | #ifdef HAVE_LIBELF_SUPPORT |
17 | #include <libelf.h> | 18 | #include <libelf.h> |