diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace_event.h | 3 | ||||
-rw-r--r-- | include/linux/module.h | 4 | ||||
-rw-r--r-- | include/linux/trace_seq.h | 2 | ||||
-rw-r--r-- | include/trace/ftrace.h | 1 |
4 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 17810853b4f8..75f3ac01a87c 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | struct trace_array; | 8 | struct trace_array; |
9 | struct tracer; | 9 | struct tracer; |
10 | struct dentry; | ||
10 | 11 | ||
11 | /* | 12 | /* |
12 | * The trace entry - the most basic unit of tracing. This is what | 13 | * The trace entry - the most basic unit of tracing. This is what |
@@ -87,6 +88,7 @@ struct ftrace_event_call { | |||
87 | char *name; | 88 | char *name; |
88 | char *system; | 89 | char *system; |
89 | struct dentry *dir; | 90 | struct dentry *dir; |
91 | struct trace_event *event; | ||
90 | int enabled; | 92 | int enabled; |
91 | int (*regfunc)(void); | 93 | int (*regfunc)(void); |
92 | void (*unregfunc)(void); | 94 | void (*unregfunc)(void); |
@@ -97,6 +99,7 @@ struct ftrace_event_call { | |||
97 | struct list_head fields; | 99 | struct list_head fields; |
98 | int n_preds; | 100 | int n_preds; |
99 | struct filter_pred **preds; | 101 | struct filter_pred **preds; |
102 | void *mod; | ||
100 | 103 | ||
101 | #ifdef CONFIG_EVENT_PROFILE | 104 | #ifdef CONFIG_EVENT_PROFILE |
102 | atomic_t profile_count; | 105 | atomic_t profile_count; |
diff --git a/include/linux/module.h b/include/linux/module.h index 627ac082e2a6..6155fa44168b 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -337,6 +337,10 @@ struct module | |||
337 | const char **trace_bprintk_fmt_start; | 337 | const char **trace_bprintk_fmt_start; |
338 | unsigned int num_trace_bprintk_fmt; | 338 | unsigned int num_trace_bprintk_fmt; |
339 | #endif | 339 | #endif |
340 | #ifdef CONFIG_EVENT_TRACING | ||
341 | struct ftrace_event_call *trace_events; | ||
342 | unsigned int num_trace_events; | ||
343 | #endif | ||
340 | 344 | ||
341 | #ifdef CONFIG_MODULE_UNLOAD | 345 | #ifdef CONFIG_MODULE_UNLOAD |
342 | /* What modules depend on me? */ | 346 | /* What modules depend on me? */ |
diff --git a/include/linux/trace_seq.h b/include/linux/trace_seq.h index 28051da876dd..15ca2c71af13 100644 --- a/include/linux/trace_seq.h +++ b/include/linux/trace_seq.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _LINUX_TRACE_SEQ_H | 1 | #ifndef _LINUX_TRACE_SEQ_H |
2 | #define _LINUX_TRACE_SEQ_H | 2 | #define _LINUX_TRACE_SEQ_H |
3 | 3 | ||
4 | #include <linux/fs.h> | ||
5 | |||
4 | /* | 6 | /* |
5 | * Trace sequences are used to allow a function to call several other functions | 7 | * Trace sequences are used to allow a function to call several other functions |
6 | * to create a string of data to use (up to a max of PAGE_SIZE. | 8 | * to create a string of data to use (up to a max of PAGE_SIZE. |
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 955b967acd74..60c5323bee64 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -477,6 +477,7 @@ __attribute__((__aligned__(4))) \ | |||
477 | __attribute__((section("_ftrace_events"))) event_##call = { \ | 477 | __attribute__((section("_ftrace_events"))) event_##call = { \ |
478 | .name = #call, \ | 478 | .name = #call, \ |
479 | .system = __stringify(TRACE_SYSTEM), \ | 479 | .system = __stringify(TRACE_SYSTEM), \ |
480 | .event = &ftrace_event_type_##call, \ | ||
480 | .raw_init = ftrace_raw_init_event_##call, \ | 481 | .raw_init = ftrace_raw_init_event_##call, \ |
481 | .regfunc = ftrace_raw_reg_event_##call, \ | 482 | .regfunc = ftrace_raw_reg_event_##call, \ |
482 | .unregfunc = ftrace_raw_unreg_event_##call, \ | 483 | .unregfunc = ftrace_raw_unreg_event_##call, \ |