Commit 6aea49cb authored by Fengguang Wu's avatar Fengguang Wu Committed by Steven Rostedt

tracing/syscalls: Make local functions static

Some functions in the syscall tracing is used only locally to
the file, but they are labeled global. Convert them to static functions.
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent d24d7dbf
...@@ -77,7 +77,7 @@ static struct syscall_metadata *syscall_nr_to_meta(int nr) ...@@ -77,7 +77,7 @@ static struct syscall_metadata *syscall_nr_to_meta(int nr)
return syscalls_metadata[nr]; return syscalls_metadata[nr];
} }
enum print_line_t static enum print_line_t
print_syscall_enter(struct trace_iterator *iter, int flags, print_syscall_enter(struct trace_iterator *iter, int flags,
struct trace_event *event) struct trace_event *event)
{ {
...@@ -130,7 +130,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags, ...@@ -130,7 +130,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags,
return TRACE_TYPE_HANDLED; return TRACE_TYPE_HANDLED;
} }
enum print_line_t static enum print_line_t
print_syscall_exit(struct trace_iterator *iter, int flags, print_syscall_exit(struct trace_iterator *iter, int flags,
struct trace_event *event) struct trace_event *event)
{ {
...@@ -270,7 +270,7 @@ static int syscall_exit_define_fields(struct ftrace_event_call *call) ...@@ -270,7 +270,7 @@ static int syscall_exit_define_fields(struct ftrace_event_call *call)
return ret; return ret;
} }
void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) static void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id)
{ {
struct syscall_trace_enter *entry; struct syscall_trace_enter *entry;
struct syscall_metadata *sys_data; struct syscall_metadata *sys_data;
...@@ -305,7 +305,7 @@ void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) ...@@ -305,7 +305,7 @@ void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id)
trace_current_buffer_unlock_commit(buffer, event, 0, 0); trace_current_buffer_unlock_commit(buffer, event, 0, 0);
} }
void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) static void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
{ {
struct syscall_trace_exit *entry; struct syscall_trace_exit *entry;
struct syscall_metadata *sys_data; struct syscall_metadata *sys_data;
...@@ -337,7 +337,7 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) ...@@ -337,7 +337,7 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
trace_current_buffer_unlock_commit(buffer, event, 0, 0); trace_current_buffer_unlock_commit(buffer, event, 0, 0);
} }
int reg_event_syscall_enter(struct ftrace_event_call *call) static int reg_event_syscall_enter(struct ftrace_event_call *call)
{ {
int ret = 0; int ret = 0;
int num; int num;
...@@ -356,7 +356,7 @@ int reg_event_syscall_enter(struct ftrace_event_call *call) ...@@ -356,7 +356,7 @@ int reg_event_syscall_enter(struct ftrace_event_call *call)
return ret; return ret;
} }
void unreg_event_syscall_enter(struct ftrace_event_call *call) static void unreg_event_syscall_enter(struct ftrace_event_call *call)
{ {
int num; int num;
...@@ -371,7 +371,7 @@ void unreg_event_syscall_enter(struct ftrace_event_call *call) ...@@ -371,7 +371,7 @@ void unreg_event_syscall_enter(struct ftrace_event_call *call)
mutex_unlock(&syscall_trace_lock); mutex_unlock(&syscall_trace_lock);
} }
int reg_event_syscall_exit(struct ftrace_event_call *call) static int reg_event_syscall_exit(struct ftrace_event_call *call)
{ {
int ret = 0; int ret = 0;
int num; int num;
...@@ -390,7 +390,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call) ...@@ -390,7 +390,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call)
return ret; return ret;
} }
void unreg_event_syscall_exit(struct ftrace_event_call *call) static void unreg_event_syscall_exit(struct ftrace_event_call *call)
{ {
int num; int num;
...@@ -459,7 +459,7 @@ unsigned long __init __weak arch_syscall_addr(int nr) ...@@ -459,7 +459,7 @@ unsigned long __init __weak arch_syscall_addr(int nr)
return (unsigned long)sys_call_table[nr]; return (unsigned long)sys_call_table[nr];
} }
int __init init_ftrace_syscalls(void) static int __init init_ftrace_syscalls(void)
{ {
struct syscall_metadata *meta; struct syscall_metadata *meta;
unsigned long addr; unsigned long addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment