diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 6b8bd8800d04..4966e6a964fe 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <asm/atomic.h> | 5 | #include <asm/atomic.h> |
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | #include <linux/clocksource.h> | 7 | #include <linux/clocksource.h> |
8 | #include <linux/mmiotrace.h> | ||
8 | 9 | ||
9 | enum trace_type { | 10 | enum trace_type { |
10 | __TRACE_FIRST_TYPE = 0, | 11 | __TRACE_FIRST_TYPE = 0, |
@@ -14,6 +15,8 @@ enum trace_type { | |||
14 | TRACE_WAKE, | 15 | TRACE_WAKE, |
15 | TRACE_STACK, | 16 | TRACE_STACK, |
16 | TRACE_SPECIAL, | 17 | TRACE_SPECIAL, |
18 | TRACE_MMIO_RW, | ||
19 | TRACE_MMIO_MAP, | ||
17 | 20 | ||
18 | __TRACE_LAST_TYPE | 21 | __TRACE_LAST_TYPE |
19 | }; | 22 | }; |
@@ -75,6 +78,8 @@ struct trace_entry { | |||
75 | struct ctx_switch_entry ctx; | 78 | struct ctx_switch_entry ctx; |
76 | struct special_entry special; | 79 | struct special_entry special; |
77 | struct stack_entry stack; | 80 | struct stack_entry stack; |
81 | struct mmiotrace_rw mmiorw; | ||
82 | struct mmiotrace_map mmiomap; | ||
78 | }; | 83 | }; |
79 | }; | 84 | }; |
80 | 85 | ||
@@ -255,6 +260,15 @@ extern unsigned long ftrace_update_tot_cnt; | |||
255 | extern int DYN_FTRACE_TEST_NAME(void); | 260 | extern int DYN_FTRACE_TEST_NAME(void); |
256 | #endif | 261 | #endif |
257 | 262 | ||
263 | #ifdef CONFIG_MMIOTRACE | ||
264 | extern void __trace_mmiotrace_rw(struct trace_array *tr, | ||
265 | struct trace_array_cpu *data, | ||
266 | struct mmiotrace_rw *rw); | ||
267 | extern void __trace_mmiotrace_map(struct trace_array *tr, | ||
268 | struct trace_array_cpu *data, | ||
269 | struct mmiotrace_map *map); | ||
270 | #endif | ||
271 | |||
258 | #ifdef CONFIG_FTRACE_STARTUP_TEST | 272 | #ifdef CONFIG_FTRACE_STARTUP_TEST |
259 | #ifdef CONFIG_FTRACE | 273 | #ifdef CONFIG_FTRACE |
260 | extern int trace_selftest_startup_function(struct tracer *trace, | 274 | extern int trace_selftest_startup_function(struct tracer *trace, |