diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-05 11:45:27 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 14:06:10 -0400 |
commit | 2425bcb9240f8c97d793cb31c8e8d8d0a843fa29 (patch) | |
tree | 2177ae6e6a1d6abe8fe0caec482f3430332cb02f /include/linux/syscalls.h | |
parent | 7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (diff) |
tracing: Rename ftrace_event_{call,class} to trace_event_{call,class}
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The structures ftrace_event_call and
ftrace_event_class have nothing to do with the function hooks, and are
really trace_event structures. Rename ftrace_event_* to trace_event_*.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 | ||