aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-01 03:23:30 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-01 11:33:28 -0500
commit31c16b13349970b2684248c7d8608d2a96ae135d (patch)
tree0f0a2bee35f604090b30d6724e13bb2faec8a6a5 /include/linux/syscalls.h
parentbf56a4ea9f1683c5b223fd3a5dbea23f1fa91c34 (diff)
trace_syscalls: Set event_enter_##sname->data to its metadata
Set event_enter_##sname->data to its metadata, it makes codes simpler. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Acked-by: Jason Baron <jbaron@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <4B14D282.7050709@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 2f7c539ab96d..d3c9fd01a110 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -153,6 +153,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
153#define __SC_STR_TDECL6(t, a, ...) #t, __SC_STR_TDECL5(__VA_ARGS__) 153#define __SC_STR_TDECL6(t, a, ...) #t, __SC_STR_TDECL5(__VA_ARGS__)
154 154
155#define SYSCALL_TRACE_ENTER_EVENT(sname) \ 155#define SYSCALL_TRACE_ENTER_EVENT(sname) \
156 static const struct syscall_metadata __syscall_meta_##sname; \
156 static struct ftrace_event_call event_enter_##sname; \ 157 static struct ftrace_event_call event_enter_##sname; \
157 struct trace_event enter_syscall_print_##sname = { \ 158 struct trace_event enter_syscall_print_##sname = { \
158 .trace = print_syscall_enter, \ 159 .trace = print_syscall_enter, \
@@ -184,11 +185,12 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
184 .define_fields = syscall_enter_define_fields, \ 185 .define_fields = syscall_enter_define_fields, \
185 .regfunc = reg_event_syscall_enter, \ 186 .regfunc = reg_event_syscall_enter, \
186 .unregfunc = unreg_event_syscall_enter, \ 187 .unregfunc = unreg_event_syscall_enter, \
187 .data = "sys"#sname, \ 188 .data = (void *)&__syscall_meta_##sname,\
188 TRACE_SYS_ENTER_PROFILE_INIT(sname) \ 189 TRACE_SYS_ENTER_PROFILE_INIT(sname) \
189 } 190 }
190 191
191#define SYSCALL_TRACE_EXIT_EVENT(sname) \ 192#define SYSCALL_TRACE_EXIT_EVENT(sname) \
193 static const struct syscall_metadata __syscall_meta_##sname; \
192 static struct ftrace_event_call event_exit_##sname; \ 194 static struct ftrace_event_call event_exit_##sname; \
193 struct trace_event exit_syscall_print_##sname = { \ 195 struct trace_event exit_syscall_print_##sname = { \
194 .trace = print_syscall_exit, \ 196 .trace = print_syscall_exit, \
@@ -220,7 +222,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
220 .define_fields = syscall_exit_define_fields, \ 222 .define_fields = syscall_exit_define_fields, \
221 .regfunc = reg_event_syscall_exit, \ 223 .regfunc = reg_event_syscall_exit, \
222 .unregfunc = unreg_event_syscall_exit, \ 224 .unregfunc = unreg_event_syscall_exit, \
223 .data = "sys"#sname, \ 225 .data = (void *)&__syscall_meta_##sname,\
224 TRACE_SYS_EXIT_PROFILE_INIT(sname) \ 226 TRACE_SYS_EXIT_PROFILE_INIT(sname) \
225 } 227 }
226 228