diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/perf.h | 24 | ||||
-rw-r--r-- | tools/perf/util/event.h | 24 | ||||
-rw-r--r-- | tools/perf/util/symbol.h | 1 |
3 files changed, 25 insertions, 24 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 1bf95374a7d6..cf8f2281ad85 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -214,30 +214,6 @@ sys_perf_event_open(struct perf_event_attr *attr, | |||
214 | 214 | ||
215 | #define MAX_NR_CPUS 256 | 215 | #define MAX_NR_CPUS 256 |
216 | 216 | ||
217 | struct ip_callchain { | ||
218 | u64 nr; | ||
219 | u64 ips[0]; | ||
220 | }; | ||
221 | |||
222 | struct branch_flags { | ||
223 | u64 mispred:1; | ||
224 | u64 predicted:1; | ||
225 | u64 in_tx:1; | ||
226 | u64 abort:1; | ||
227 | u64 reserved:60; | ||
228 | }; | ||
229 | |||
230 | struct branch_entry { | ||
231 | u64 from; | ||
232 | u64 to; | ||
233 | struct branch_flags flags; | ||
234 | }; | ||
235 | |||
236 | struct branch_stack { | ||
237 | u64 nr; | ||
238 | struct branch_entry entries[0]; | ||
239 | }; | ||
240 | |||
241 | extern const char *input_name; | 217 | extern const char *input_name; |
242 | extern bool perf_host, perf_guest; | 218 | extern bool perf_host, perf_guest; |
243 | extern const char perf_version_string[]; | 219 | extern const char perf_version_string[]; |
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> |