tracing/syscalls: Make syscall events print callbacks static
PATCH 1/1 tracing/syscalls: Make syscall events print callbacks static
enter_syscall_print_##sname and exit_syscall_print_##sname don't need to have a global scope. Make them static.
Signed-off-by Frederic Weisbecker <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Jason Baron <[email protected]>
Cc Lai Jiangshan <[email protected]>
--- include/linux/syscalls.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/syscalls.h +2 -2
@@ -134,7 +134,7 @@ struct perf_event_attr;#define SYSCALL_TRACE_ENTER_EVENT (sname) \ static const struct syscall_metadata __syscall_meta_##sname; \ static struct ftrace_event_call event_enter_##sname; \ - struct trace_event enter_syscall_print_##sname = { \ + static struct trace_event enter_syscall_print_##sname = { \ .trace = print_syscall_enter, \ }; \ static struct ftrace_event_call __used \
@@ -156,7 +156,7 @@ struct perf_event_attr;#define SYSCALL_TRACE_EXIT_EVENT (sname) \ static const struct syscall_metadata __syscall_meta_##sname; \ static struct ftrace_event_call event_exit_##sname; \ - struct trace_event exit_syscall_print_##sname = { \ + static struct trace_event exit_syscall_print_##sname = { \ .trace = print_syscall_exit, \ }; \ static struct ftrace_event_call __used \
Signature · 1 line
1.6.2.3
Commit-ID: 6b62fe019e39edfd1dbe3f224ecd0a87d9365223 Gitweb: http://git.kernel.org/tip/6b62fe019e39edfd1dbe3f224ecd0a87d9365223 Author: Frederic Weisbecker <[email protected]> AuthorDate: Wed, 2 Dec 2009 07:23:10 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 2 Dec 2009 09:59:02 +0100
tracing/syscalls: Make syscall events print callbacks static
enter_syscall_print_##sname and exit_syscall_print_##sname don't need to have a global scope. Make them static.
Signed-off-by Frederic Weisbecker <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Jason Baron <[email protected]>
Cc Lai Jiangshan <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- include/linux/syscalls.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/syscalls.h +2 -2
@@ -134,7 +134,7 @@ struct perf_event_attr;#define SYSCALL_TRACE_ENTER_EVENT (sname) \ static const struct syscall_metadata __syscall_meta_##sname; \ static struct ftrace_event_call event_enter_##sname; \ - struct trace_event enter_syscall_print_##sname = { \ + static struct trace_event enter_syscall_print_##sname = { \ .trace = print_syscall_enter, \ }; \ static struct ftrace_event_call __used \
@@ -156,7 +156,7 @@ struct perf_event_attr;#define SYSCALL_TRACE_EXIT_EVENT (sname) \ static const struct syscall_metadata __syscall_meta_##sname; \ static struct ftrace_event_call event_exit_##sname; \ - struct trace_event exit_syscall_print_##sname = { \ + static struct trace_event exit_syscall_print_##sname = { \ .trace = print_syscall_exit, \ }; \ static struct ftrace_event_call __used \