diff options
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/perf.h | 22 | ||||
| -rw-r--r-- | include/trace/syscall.h | 4 | ||||
| -rw-r--r-- | include/trace/trace_events.h | 6 |
3 files changed, 16 insertions, 16 deletions
diff --git a/include/trace/perf.h b/include/trace/perf.h index ccc5cc1381e4..1d10c2d2b2c4 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h | |||
| @@ -5,12 +5,12 @@ | |||
| 5 | * | 5 | * |
| 6 | * For those macros defined with TRACE_EVENT: | 6 | * For those macros defined with TRACE_EVENT: |
| 7 | * | 7 | * |
| 8 | * static struct ftrace_event_call event_<call>; | 8 | * static struct trace_event_call event_<call>; |
| 9 | * | 9 | * |
| 10 | * static void ftrace_raw_event_<call>(void *__data, proto) | 10 | * static void ftrace_raw_event_<call>(void *__data, proto) |
| 11 | * { | 11 | * { |
| 12 | * struct trace_event_file *trace_file = __data; | 12 | * struct trace_event_file *trace_file = __data; |
| 13 | * struct ftrace_event_call *event_call = trace_file->event_call; | 13 | * struct trace_event_call *event_call = trace_file->event_call; |
| 14 | * struct ftrace_data_offsets_<call> __maybe_unused __data_offsets; | 14 | * struct ftrace_data_offsets_<call> __maybe_unused __data_offsets; |
| 15 | * unsigned long eflags = trace_file->flags; | 15 | * unsigned long eflags = trace_file->flags; |
| 16 | * enum event_trigger_type __tt = ETT_NONE; | 16 | * enum event_trigger_type __tt = ETT_NONE; |
| @@ -63,7 +63,7 @@ | |||
| 63 | * | 63 | * |
| 64 | * static char print_fmt_<call>[] = <TP_printk>; | 64 | * static char print_fmt_<call>[] = <TP_printk>; |
| 65 | * | 65 | * |
| 66 | * static struct ftrace_event_class __used event_class_<template> = { | 66 | * static struct trace_event_class __used event_class_<template> = { |
| 67 | * .system = "<system>", | 67 | * .system = "<system>", |
| 68 | * .define_fields = ftrace_define_fields_<call>, | 68 | * .define_fields = ftrace_define_fields_<call>, |
| 69 | * .fields = LIST_HEAD_INIT(event_class_##call.fields), | 69 | * .fields = LIST_HEAD_INIT(event_class_##call.fields), |
| @@ -72,7 +72,7 @@ | |||
| 72 | * .reg = trace_event_reg, | 72 | * .reg = trace_event_reg, |
| 73 | * }; | 73 | * }; |
| 74 | * | 74 | * |
| 75 | * static struct ftrace_event_call event_<call> = { | 75 | * static struct trace_event_call event_<call> = { |
| 76 | * .class = event_class_<template>, | 76 | * .class = event_class_<template>, |
| 77 | * { | 77 | * { |
| 78 | * .tp = &__tracepoint_<call>, | 78 | * .tp = &__tracepoint_<call>, |
| @@ -83,7 +83,7 @@ | |||
| 83 | * }; | 83 | * }; |
| 84 | * // its only safe to use pointers when doing linker tricks to | 84 | * // its only safe to use pointers when doing linker tricks to |
| 85 | * // create an array. | 85 | * // create an array. |
| 86 | * static struct ftrace_event_call __used | 86 | * static struct trace_event_call __used |
| 87 | * __attribute__((section("_ftrace_events"))) *__event_<call> = &event_<call>; | 87 | * __attribute__((section("_ftrace_events"))) *__event_<call> = &event_<call>; |
| 88 | * | 88 | * |
| 89 | */ | 89 | */ |
| @@ -213,7 +213,7 @@ static inline void ftrace_test_probe_##call(void) \ | |||
| 213 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 213 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
| 214 | _TRACE_PERF_PROTO(call, PARAMS(proto)); \ | 214 | _TRACE_PERF_PROTO(call, PARAMS(proto)); \ |
| 215 | static char print_fmt_##call[] = print; \ | 215 | static char print_fmt_##call[] = print; \ |
| 216 | static struct ftrace_event_class __used __refdata event_class_##call = { \ | 216 | static struct trace_event_class __used __refdata event_class_##call = { \ |
| 217 | .system = TRACE_SYSTEM_STRING, \ | 217 | .system = TRACE_SYSTEM_STRING, \ |
| 218 | .define_fields = ftrace_define_fields_##call, \ | 218 | .define_fields = ftrace_define_fields_##call, \ |
| 219 | .fields = LIST_HEAD_INIT(event_class_##call.fields),\ | 219 | .fields = LIST_HEAD_INIT(event_class_##call.fields),\ |
| @@ -226,7 +226,7 @@ static struct ftrace_event_class __used __refdata event_class_##call = { \ | |||
| 226 | #undef DEFINE_EVENT | 226 | #undef DEFINE_EVENT |
| 227 | #define DEFINE_EVENT(template, call, proto, args) \ | 227 | #define DEFINE_EVENT(template, call, proto, args) \ |
| 228 | \ | 228 | \ |
| 229 | static struct ftrace_event_call __used event_##call = { \ | 229 | static struct trace_event_call __used event_##call = { \ |
| 230 | .class = &event_class_##template, \ | 230 | .class = &event_class_##template, \ |
| 231 | { \ | 231 | { \ |
| 232 | .tp = &__tracepoint_##call, \ | 232 | .tp = &__tracepoint_##call, \ |
| @@ -235,7 +235,7 @@ static struct ftrace_event_call __used event_##call = { \ | |||
| 235 | .print_fmt = print_fmt_##template, \ | 235 | .print_fmt = print_fmt_##template, \ |
| 236 | .flags = TRACE_EVENT_FL_TRACEPOINT, \ | 236 | .flags = TRACE_EVENT_FL_TRACEPOINT, \ |
| 237 | }; \ | 237 | }; \ |
| 238 | static struct ftrace_event_call __used \ | 238 | static struct trace_event_call __used \ |
| 239 | __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call | 239 | __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call |
| 240 | 240 | ||
| 241 | #undef DEFINE_EVENT_PRINT | 241 | #undef DEFINE_EVENT_PRINT |
| @@ -243,7 +243,7 @@ __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call | |||
| 243 | \ | 243 | \ |
| 244 | static char print_fmt_##call[] = print; \ | 244 | static char print_fmt_##call[] = print; \ |
| 245 | \ | 245 | \ |
| 246 | static struct ftrace_event_call __used event_##call = { \ | 246 | static struct trace_event_call __used event_##call = { \ |
| 247 | .class = &event_class_##template, \ | 247 | .class = &event_class_##template, \ |
| 248 | { \ | 248 | { \ |
| 249 | .tp = &__tracepoint_##call, \ | 249 | .tp = &__tracepoint_##call, \ |
| @@ -252,7 +252,7 @@ static struct ftrace_event_call __used event_##call = { \ | |||
| 252 | .print_fmt = print_fmt_##call, \ | 252 | .print_fmt = print_fmt_##call, \ |
| 253 | .flags = TRACE_EVENT_FL_TRACEPOINT, \ | 253 | .flags = TRACE_EVENT_FL_TRACEPOINT, \ |
| 254 | }; \ | 254 | }; \ |
| 255 | static struct ftrace_event_call __used \ | 255 | static struct trace_event_call __used \ |
| 256 | __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call | 256 | __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call |
| 257 | 257 | ||
| 258 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 258 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
| @@ -292,7 +292,7 @@ __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call | |||
| 292 | static notrace void \ | 292 | static notrace void \ |
| 293 | perf_trace_##call(void *__data, proto) \ | 293 | perf_trace_##call(void *__data, proto) \ |
| 294 | { \ | 294 | { \ |
| 295 | struct ftrace_event_call *event_call = __data; \ | 295 | struct trace_event_call *event_call = __data; \ |
| 296 | struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ | 296 | struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ |
| 297 | struct ftrace_raw_##call *entry; \ | 297 | struct ftrace_raw_##call *entry; \ |
| 298 | struct pt_regs *__regs; \ | 298 | struct pt_regs *__regs; \ |
diff --git a/include/trace/syscall.h b/include/trace/syscall.h index 58df48c9d04e..7434f0f5d3f6 100644 --- a/include/trace/syscall.h +++ b/include/trace/syscall.h | |||
| @@ -29,8 +29,8 @@ struct syscall_metadata { | |||
| 29 | const char **args; | 29 | const char **args; |
| 30 | struct list_head enter_fields; | 30 | struct list_head enter_fields; |
| 31 | 31 | ||
| 32 | struct ftrace_event_call *enter_event; | 32 | struct trace_event_call *enter_event; |
| 33 | struct ftrace_event_call *exit_event; | 33 | struct trace_event_call *exit_event; |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | #if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS) | 36 | #if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS) |
diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h index c0b94728758b..c6f826136b8c 100644 --- a/include/trace/trace_events.h +++ b/include/trace/trace_events.h | |||
| @@ -101,11 +101,11 @@ TRACE_MAKE_SYSTEM_STR(); | |||
| 101 | char __data[0]; \ | 101 | char __data[0]; \ |
| 102 | }; \ | 102 | }; \ |
| 103 | \ | 103 | \ |
| 104 | static struct ftrace_event_class event_class_##name; | 104 | static struct trace_event_class event_class_##name; |
| 105 | 105 | ||
| 106 | #undef DEFINE_EVENT | 106 | #undef DEFINE_EVENT |
| 107 | #define DEFINE_EVENT(template, name, proto, args) \ | 107 | #define DEFINE_EVENT(template, name, proto, args) \ |
| 108 | static struct ftrace_event_call __used \ | 108 | static struct trace_event_call __used \ |
| 109 | __attribute__((__aligned__(4))) event_##name | 109 | __attribute__((__aligned__(4))) event_##name |
| 110 | 110 | ||
| 111 | #undef DEFINE_EVENT_FN | 111 | #undef DEFINE_EVENT_FN |
| @@ -407,7 +407,7 @@ static struct trace_event_functions ftrace_event_type_funcs_##call = { \ | |||
| 407 | #undef DECLARE_EVENT_CLASS | 407 | #undef DECLARE_EVENT_CLASS |
| 408 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ | 408 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ |
| 409 | static int notrace __init \ | 409 | static int notrace __init \ |
| 410 | ftrace_define_fields_##call(struct ftrace_event_call *event_call) \ | 410 | ftrace_define_fields_##call(struct trace_event_call *event_call) \ |
| 411 | { \ | 411 | { \ |
| 412 | struct ftrace_raw_##call field; \ | 412 | struct ftrace_raw_##call field; \ |
| 413 | int ret; \ | 413 | int ret; \ |
