diff options
Diffstat (limited to 'kernel/trace/trace_events.h')
-rw-r--r-- | kernel/trace/trace_events.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.h b/kernel/trace/trace_events.h index 39342f86db27..cb8455b3ac9a 100644 --- a/kernel/trace/trace_events.h +++ b/kernel/trace/trace_events.h | |||
@@ -1,11 +1,13 @@ | |||
1 | #ifndef _LINUX_KERNEL_TRACE_EVENTS_H | 1 | #ifndef _LINUX_KERNEL_TRACE_EVENTS_H |
2 | #define _LINUX_KERNEL_TRACE_EVENTS_H | 2 | #define _LINUX_KERNEL_TRACE_EVENTS_H |
3 | 3 | ||
4 | #include <linux/debugfs.h> | ||
4 | #include <linux/ftrace.h> | 5 | #include <linux/ftrace.h> |
5 | #include "trace.h" | 6 | #include "trace.h" |
6 | 7 | ||
7 | struct ftrace_event_call { | 8 | struct ftrace_event_call { |
8 | char *name; | 9 | char *name; |
10 | struct dentry *dir; | ||
9 | int enabled; | 11 | int enabled; |
10 | int (*regfunc)(void); | 12 | int (*regfunc)(void); |
11 | void (*unregfunc)(void); | 13 | void (*unregfunc)(void); |
@@ -39,6 +41,7 @@ static void ftrace_unreg_event_##call(void) \ | |||
39 | } \ | 41 | } \ |
40 | \ | 42 | \ |
41 | static struct ftrace_event_call __used \ | 43 | static struct ftrace_event_call __used \ |
44 | __attribute__((__aligned__(4))) \ | ||
42 | __attribute__((section("_ftrace_events"))) event_##call = { \ | 45 | __attribute__((section("_ftrace_events"))) event_##call = { \ |
43 | .name = #call, \ | 46 | .name = #call, \ |
44 | .regfunc = ftrace_reg_event_##call, \ | 47 | .regfunc = ftrace_reg_event_##call, \ |
@@ -46,7 +49,7 @@ __attribute__((section("_ftrace_events"))) event_##call = { \ | |||
46 | } | 49 | } |
47 | 50 | ||
48 | void event_trace_printk(unsigned long ip, const char *fmt, ...); | 51 | void event_trace_printk(unsigned long ip, const char *fmt, ...); |
49 | extern unsigned long __start_ftrace_events[]; | 52 | extern struct ftrace_event_call __start_ftrace_events[]; |
50 | extern unsigned long __stop_ftrace_events[]; | 53 | extern struct ftrace_event_call __stop_ftrace_events[]; |
51 | 54 | ||
52 | #endif /* _LINUX_KERNEL_TRACE_EVENTS_H */ | 55 | #endif /* _LINUX_KERNEL_TRACE_EVENTS_H */ |