diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/module.h | 2 | ||||
| -rw-r--r-- | include/linux/perf_event.h | 2 | ||||
| -rw-r--r-- | include/linux/syscalls.h | 12 | ||||
| -rw-r--r-- | include/linux/trace_events.h | 38 |
4 files changed, 27 insertions, 27 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index c883b86ea964..3e0d492682bb 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -336,7 +336,7 @@ struct module { | |||
| 336 | const char **trace_bprintk_fmt_start; | 336 | const char **trace_bprintk_fmt_start; |
| 337 | #endif | 337 | #endif |
| 338 | #ifdef CONFIG_EVENT_TRACING | 338 | #ifdef CONFIG_EVENT_TRACING |
| 339 | struct ftrace_event_call **trace_events; | 339 | struct trace_event_call **trace_events; |
| 340 | unsigned int num_trace_events; | 340 | unsigned int num_trace_events; |
| 341 | struct trace_enum_map **trace_enums; | 341 | struct trace_enum_map **trace_enums; |
| 342 | unsigned int num_trace_enums; | 342 | unsigned int num_trace_enums; |
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 61992cf2e977..d089d6d58ae0 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
| @@ -483,7 +483,7 @@ struct perf_event { | |||
| 483 | void *overflow_handler_context; | 483 | void *overflow_handler_context; |
| 484 | 484 | ||
| 485 | #ifdef CONFIG_EVENT_TRACING | 485 | #ifdef CONFIG_EVENT_TRACING |
| 486 | struct ftrace_event_call *tp_event; | 486 | struct trace_event_call *tp_event; |
| 487 | struct event_filter *filter; | 487 | struct event_filter *filter; |
| 488 | #ifdef CONFIG_FUNCTION_TRACER | 488 | #ifdef CONFIG_FUNCTION_TRACER |
| 489 | struct ftrace_ops ftrace_ops; | 489 | struct ftrace_ops ftrace_ops; |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 76d1e38aabe1..d8b06abb264f 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -111,14 +111,14 @@ union bpf_attr; | |||
| 111 | #define __SC_STR_ADECL(t, a) #a | 111 | #define __SC_STR_ADECL(t, a) #a |
| 112 | #define __SC_STR_TDECL(t, a) #t | 112 | #define __SC_STR_TDECL(t, a) #t |
| 113 | 113 | ||
| 114 | extern struct ftrace_event_class event_class_syscall_enter; | 114 | extern struct trace_event_class event_class_syscall_enter; |
| 115 | extern struct ftrace_event_class event_class_syscall_exit; | 115 | extern struct trace_event_class event_class_syscall_exit; |
| 116 | extern struct trace_event_functions enter_syscall_print_funcs; | 116 | extern struct trace_event_functions enter_syscall_print_funcs; |
| 117 | extern struct trace_event_functions exit_syscall_print_funcs; | 117 | extern struct trace_event_functions exit_syscall_print_funcs; |
| 118 | 118 | ||
| 119 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ | 119 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ |
| 120 | static struct syscall_metadata __syscall_meta_##sname; \ | 120 | static struct syscall_metadata __syscall_meta_##sname; \ |
| 121 | static struct ftrace_event_call __used \ | 121 | static struct trace_event_call __used \ |
| 122 | event_enter_##sname = { \ | 122 | event_enter_##sname = { \ |
| 123 | .class = &event_class_syscall_enter, \ | 123 | .class = &event_class_syscall_enter, \ |
| 124 | { \ | 124 | { \ |
| @@ -128,13 +128,13 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
| 128 | .data = (void *)&__syscall_meta_##sname,\ | 128 | .data = (void *)&__syscall_meta_##sname,\ |
| 129 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | 129 | .flags = TRACE_EVENT_FL_CAP_ANY, \ |
| 130 | }; \ | 130 | }; \ |
| 131 | static struct ftrace_event_call __used \ | 131 | static struct trace_event_call __used \ |
| 132 | __attribute__((section("_ftrace_events"))) \ | 132 | __attribute__((section("_ftrace_events"))) \ |
| 133 | *__event_enter_##sname = &event_enter_##sname; | 133 | *__event_enter_##sname = &event_enter_##sname; |
| 134 | 134 | ||
| 135 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 135 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ |
| 136 | static struct syscall_metadata __syscall_meta_##sname; \ | 136 | static struct syscall_metadata __syscall_meta_##sname; \ |
| 137 | static struct ftrace_event_call __used \ | 137 | static struct trace_event_call __used \ |
| 138 | event_exit_##sname = { \ | 138 | event_exit_##sname = { \ |
| 139 | .class = &event_class_syscall_exit, \ | 139 | .class = &event_class_syscall_exit, \ |
| 140 | { \ | 140 | { \ |
| @@ -144,7 +144,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
| 144 | .data = (void *)&__syscall_meta_##sname,\ | 144 | .data = (void *)&__syscall_meta_##sname,\ |
| 145 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | 145 | .flags = TRACE_EVENT_FL_CAP_ANY, \ |
| 146 | }; \ | 146 | }; \ |
| 147 | static struct ftrace_event_call __used \ | 147 | static struct trace_event_call __used \ |
| 148 | __attribute__((section("_ftrace_events"))) \ | 148 | __attribute__((section("_ftrace_events"))) \ |
| 149 | *__event_exit_##sname = &event_exit_##sname; | 149 | *__event_exit_##sname = &event_exit_##sname; |
| 150 | 150 | ||
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index ae19233c7dd8..d10ab04a17b2 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
| @@ -200,23 +200,23 @@ enum trace_reg { | |||
| 200 | #endif | 200 | #endif |
| 201 | }; | 201 | }; |
| 202 | 202 | ||
| 203 | struct ftrace_event_call; | 203 | struct trace_event_call; |
| 204 | 204 | ||
| 205 | struct ftrace_event_class { | 205 | struct trace_event_class { |
| 206 | const char *system; | 206 | const char *system; |
| 207 | void *probe; | 207 | void *probe; |
| 208 | #ifdef CONFIG_PERF_EVENTS | 208 | #ifdef CONFIG_PERF_EVENTS |
| 209 | void *perf_probe; | 209 | void *perf_probe; |
| 210 | #endif | 210 | #endif |
| 211 | int (*reg)(struct ftrace_event_call *event, | 211 | int (*reg)(struct trace_event_call *event, |
| 212 | enum trace_reg type, void *data); | 212 | enum trace_reg type, void *data); |
| 213 | int (*define_fields)(struct ftrace_event_call *); | 213 | int (*define_fields)(struct trace_event_call *); |
| 214 | struct list_head *(*get_fields)(struct ftrace_event_call *); | 214 | struct list_head *(*get_fields)(struct trace_event_call *); |
| 215 | struct list_head fields; | 215 | struct list_head fields; |
| 216 | int (*raw_init)(struct ftrace_event_call *); | 216 | int (*raw_init)(struct trace_event_call *); |
| 217 | }; | 217 | }; |
| 218 | 218 | ||
| 219 | extern int trace_event_reg(struct ftrace_event_call *event, | 219 | extern int trace_event_reg(struct trace_event_call *event, |
| 220 | enum trace_reg type, void *data); | 220 | enum trace_reg type, void *data); |
| 221 | 221 | ||
| 222 | struct ftrace_event_buffer { | 222 | struct ftrace_event_buffer { |
| @@ -269,9 +269,9 @@ enum { | |||
| 269 | TRACE_EVENT_FL_KPROBE = (1 << TRACE_EVENT_FL_KPROBE_BIT), | 269 | TRACE_EVENT_FL_KPROBE = (1 << TRACE_EVENT_FL_KPROBE_BIT), |
| 270 | }; | 270 | }; |
| 271 | 271 | ||
| 272 | struct ftrace_event_call { | 272 | struct trace_event_call { |
| 273 | struct list_head list; | 273 | struct list_head list; |
| 274 | struct ftrace_event_class *class; | 274 | struct trace_event_class *class; |
| 275 | union { | 275 | union { |
| 276 | char *name; | 276 | char *name; |
| 277 | /* Set TRACE_EVENT_FL_TRACEPOINT flag when using "tp" */ | 277 | /* Set TRACE_EVENT_FL_TRACEPOINT flag when using "tp" */ |
| @@ -298,13 +298,13 @@ struct ftrace_event_call { | |||
| 298 | struct hlist_head __percpu *perf_events; | 298 | struct hlist_head __percpu *perf_events; |
| 299 | struct bpf_prog *prog; | 299 | struct bpf_prog *prog; |
| 300 | 300 | ||
| 301 | int (*perf_perm)(struct ftrace_event_call *, | 301 | int (*perf_perm)(struct trace_event_call *, |
| 302 | struct perf_event *); | 302 | struct perf_event *); |
| 303 | #endif | 303 | #endif |
| 304 | }; | 304 | }; |
| 305 | 305 | ||
| 306 | static inline const char * | 306 | static inline const char * |
| 307 | ftrace_event_name(struct ftrace_event_call *call) | 307 | ftrace_event_name(struct trace_event_call *call) |
| 308 | { | 308 | { |
| 309 | if (call->flags & TRACE_EVENT_FL_TRACEPOINT) | 309 | if (call->flags & TRACE_EVENT_FL_TRACEPOINT) |
| 310 | return call->tp ? call->tp->name : NULL; | 310 | return call->tp ? call->tp->name : NULL; |
| @@ -351,7 +351,7 @@ enum { | |||
| 351 | 351 | ||
| 352 | struct trace_event_file { | 352 | struct trace_event_file { |
| 353 | struct list_head list; | 353 | struct list_head list; |
| 354 | struct ftrace_event_call *event_call; | 354 | struct trace_event_call *event_call; |
| 355 | struct event_filter *filter; | 355 | struct event_filter *filter; |
| 356 | struct dentry *dir; | 356 | struct dentry *dir; |
| 357 | struct trace_array *tr; | 357 | struct trace_array *tr; |
| @@ -388,7 +388,7 @@ struct trace_event_file { | |||
| 388 | early_initcall(trace_init_flags_##name); | 388 | early_initcall(trace_init_flags_##name); |
| 389 | 389 | ||
| 390 | #define __TRACE_EVENT_PERF_PERM(name, expr...) \ | 390 | #define __TRACE_EVENT_PERF_PERM(name, expr...) \ |
| 391 | static int perf_perm_##name(struct ftrace_event_call *tp_event, \ | 391 | static int perf_perm_##name(struct trace_event_call *tp_event, \ |
| 392 | struct perf_event *p_event) \ | 392 | struct perf_event *p_event) \ |
| 393 | { \ | 393 | { \ |
| 394 | return ({ expr; }); \ | 394 | return ({ expr; }); \ |
| @@ -417,7 +417,7 @@ extern int filter_match_preds(struct event_filter *filter, void *rec); | |||
| 417 | extern int filter_check_discard(struct trace_event_file *file, void *rec, | 417 | extern int filter_check_discard(struct trace_event_file *file, void *rec, |
| 418 | struct ring_buffer *buffer, | 418 | struct ring_buffer *buffer, |
| 419 | struct ring_buffer_event *event); | 419 | struct ring_buffer_event *event); |
| 420 | extern int call_filter_check_discard(struct ftrace_event_call *call, void *rec, | 420 | extern int call_filter_check_discard(struct trace_event_call *call, void *rec, |
| 421 | struct ring_buffer *buffer, | 421 | struct ring_buffer *buffer, |
| 422 | struct ring_buffer_event *event); | 422 | struct ring_buffer_event *event); |
| 423 | extern enum event_trigger_type event_triggers_call(struct trace_event_file *file, | 423 | extern enum event_trigger_type event_triggers_call(struct trace_event_file *file, |
| @@ -559,12 +559,12 @@ enum { | |||
| 559 | FILTER_TRACE_FN, | 559 | FILTER_TRACE_FN, |
| 560 | }; | 560 | }; |
| 561 | 561 | ||
| 562 | extern int trace_event_raw_init(struct ftrace_event_call *call); | 562 | extern int trace_event_raw_init(struct trace_event_call *call); |
