aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace_event.h2
-rw-r--r--include/linux/syscalls.h2
-rw-r--r--include/trace/ftrace.h9
3 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 479c3c1876e6..393a8394df0e 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -133,6 +133,7 @@ struct ftrace_event_class {
133 int (*define_fields)(struct ftrace_event_call *); 133 int (*define_fields)(struct ftrace_event_call *);
134 struct list_head *(*get_fields)(struct ftrace_event_call *); 134 struct list_head *(*get_fields)(struct ftrace_event_call *);
135 struct list_head fields; 135 struct list_head fields;
136 int (*raw_init)(struct ftrace_event_call *);
136}; 137};
137 138
138struct ftrace_event_call { 139struct ftrace_event_call {
@@ -144,7 +145,6 @@ struct ftrace_event_call {
144 int enabled; 145 int enabled;
145 int id; 146 int id;
146 const char *print_fmt; 147 const char *print_fmt;
147 int (*raw_init)(struct ftrace_event_call *);
148 int filter_active; 148 int filter_active;
149 struct event_filter *filter; 149 struct event_filter *filter;
150 void *mod; 150 void *mod;
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index fd0f1f248cd8..211c704a71ed 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -135,7 +135,6 @@ extern struct ftrace_event_class event_class_syscall_exit;
135 .name = "sys_enter"#sname, \ 135 .name = "sys_enter"#sname, \
136 .class = &event_class_syscall_enter, \ 136 .class = &event_class_syscall_enter, \
137 .event = &enter_syscall_print_##sname, \ 137 .event = &enter_syscall_print_##sname, \
138 .raw_init = init_syscall_trace, \
139 .data = (void *)&__syscall_meta_##sname,\ 138 .data = (void *)&__syscall_meta_##sname,\
140 } 139 }
141 140
@@ -153,7 +152,6 @@ extern struct ftrace_event_class event_class_syscall_exit;
153 .name = "sys_exit"#sname, \ 152 .name = "sys_exit"#sname, \
154 .class = &event_class_syscall_exit, \ 153 .class = &event_class_syscall_exit, \
155 .event = &exit_syscall_print_##sname, \ 154 .event = &exit_syscall_print_##sname, \
156 .raw_init = init_syscall_trace, \
157 .data = (void *)&__syscall_meta_##sname,\ 155 .data = (void *)&__syscall_meta_##sname,\
158 } 156 }
159 157
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index c7e3bcd5d52f..e7eb33420b06 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -431,8 +431,9 @@ static inline notrace int ftrace_get_offsets_##call( \
431 * static struct ftrace_event_class __used event_class_<template> = { 431 * static struct ftrace_event_class __used event_class_<template> = {
432 * .system = "<system>", 432 * .system = "<system>",
433 * .define_fields = ftrace_define_fields_<call>, 433 * .define_fields = ftrace_define_fields_<call>,
434 * .fields = LIST_HEAD_INIT(event_class_##call.fields), \ 434 * .fields = LIST_HEAD_INIT(event_class_##call.fields),
435 * .probe = ftrace_raw_event_##call, \ 435 * .raw_init = trace_event_raw_init,
436 * .probe = ftrace_raw_event_##call,
436 * }; 437 * };
437 * 438 *
438 * static struct ftrace_event_call __used 439 * static struct ftrace_event_call __used
@@ -440,7 +441,6 @@ static inline notrace int ftrace_get_offsets_##call( \
440 * __attribute__((section("_ftrace_events"))) event_<call> = { 441 * __attribute__((section("_ftrace_events"))) event_<call> = {
441 * .name = "<call>", 442 * .name = "<call>",
442 * .class = event_class_<template>, 443 * .class = event_class_<template>,
443 * .raw_init = trace_event_raw_init,
444 * .event = &ftrace_event_type_<call>, 444 * .event = &ftrace_event_type_<call>,
445 * .print_fmt = print_fmt_<call>, 445 * .print_fmt = print_fmt_<call>,
446 * }; 446 * };
@@ -566,6 +566,7 @@ static struct ftrace_event_class __used event_class_##call = { \
566 .system = __stringify(TRACE_SYSTEM), \ 566 .system = __stringify(TRACE_SYSTEM), \
567 .define_fields = ftrace_define_fields_##call, \ 567 .define_fields = ftrace_define_fields_##call, \
568 .fields = LIST_HEAD_INIT(event_class_##call.fields),\ 568 .fields = LIST_HEAD_INIT(event_class_##call.fields),\
569 .raw_init = trace_event_raw_init, \
569 .probe = ftrace_raw_event_##call, \ 570 .probe = ftrace_raw_event_##call, \
570 _TRACE_PERF_INIT(call) \ 571 _TRACE_PERF_INIT(call) \
571}; 572};
@@ -579,7 +580,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
579 .name = #call, \ 580 .name = #call, \
580 .class = &event_class_##template, \ 581 .class = &event_class_##template, \
581 .event = &ftrace_event_type_##call, \ 582 .event = &ftrace_event_type_##call, \
582 .raw_init = trace_event_raw_init, \
583 .print_fmt = print_fmt_##template, \ 583 .print_fmt = print_fmt_##template, \
584}; 584};
585 585
@@ -594,7 +594,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
594 .name = #call, \ 594 .name = #call, \
595 .class = &event_class_##template, \ 595 .class = &event_class_##template, \
596 .event = &ftrace_event_type_##call, \ 596 .event = &ftrace_event_type_##call, \
597 .raw_init = trace_event_raw_init, \
598 .print_fmt = print_fmt_##call, \ 597 .print_fmt = print_fmt_##call, \
599} 598}
600 599