diff options
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 7609dd6714c2..5329e13e74a1 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -77,7 +77,7 @@ static struct syscall_metadata *syscall_nr_to_meta(int nr) | |||
77 | return syscalls_metadata[nr]; | 77 | return syscalls_metadata[nr]; |
78 | } | 78 | } |
79 | 79 | ||
80 | enum print_line_t | 80 | static enum print_line_t |
81 | print_syscall_enter(struct trace_iterator *iter, int flags, | 81 | print_syscall_enter(struct trace_iterator *iter, int flags, |
82 | struct trace_event *event) | 82 | struct trace_event *event) |
83 | { | 83 | { |
@@ -130,7 +130,7 @@ end: | |||
130 | return TRACE_TYPE_HANDLED; | 130 | return TRACE_TYPE_HANDLED; |
131 | } | 131 | } |
132 | 132 | ||
133 | enum print_line_t | 133 | static enum print_line_t |
134 | print_syscall_exit(struct trace_iterator *iter, int flags, | 134 | print_syscall_exit(struct trace_iterator *iter, int flags, |
135 | struct trace_event *event) | 135 | struct trace_event *event) |
136 | { | 136 | { |
@@ -270,7 +270,7 @@ static int syscall_exit_define_fields(struct ftrace_event_call *call) | |||
270 | return ret; | 270 | return ret; |
271 | } | 271 | } |
272 | 272 | ||
273 | void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) | 273 | static void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) |
274 | { | 274 | { |
275 | struct syscall_trace_enter *entry; | 275 | struct syscall_trace_enter *entry; |
276 | struct syscall_metadata *sys_data; | 276 | struct syscall_metadata *sys_data; |
@@ -305,7 +305,7 @@ void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) | |||
305 | trace_current_buffer_unlock_commit(buffer, event, 0, 0); | 305 | trace_current_buffer_unlock_commit(buffer, event, 0, 0); |
306 | } | 306 | } |
307 | 307 | ||
308 | void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) | 308 | static void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) |
309 | { | 309 | { |
310 | struct syscall_trace_exit *entry; | 310 | struct syscall_trace_exit *entry; |
311 | struct syscall_metadata *sys_data; | 311 | struct syscall_metadata *sys_data; |
@@ -337,7 +337,7 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) | |||
337 | trace_current_buffer_unlock_commit(buffer, event, 0, 0); | 337 | trace_current_buffer_unlock_commit(buffer, event, 0, 0); |
338 | } | 338 | } |
339 | 339 | ||
340 | int reg_event_syscall_enter(struct ftrace_event_call *call) | 340 | static int reg_event_syscall_enter(struct ftrace_event_call *call) |
341 | { | 341 | { |
342 | int ret = 0; | 342 | int ret = 0; |
343 | int num; | 343 | int num; |
@@ -356,7 +356,7 @@ int reg_event_syscall_enter(struct ftrace_event_call *call) | |||
356 | return ret; | 356 | return ret; |
357 | } | 357 | } |
358 | 358 | ||
359 | void unreg_event_syscall_enter(struct ftrace_event_call *call) | 359 | static void unreg_event_syscall_enter(struct ftrace_event_call *call) |
360 | { | 360 | { |
361 | int num; | 361 | int num; |
362 | 362 | ||
@@ -371,7 +371,7 @@ void unreg_event_syscall_enter(struct ftrace_event_call *call) | |||
371 | mutex_unlock(&syscall_trace_lock); | 371 | mutex_unlock(&syscall_trace_lock); |
372 | } | 372 | } |
373 | 373 | ||
374 | int reg_event_syscall_exit(struct ftrace_event_call *call) | 374 | static int reg_event_syscall_exit(struct ftrace_event_call *call) |
375 | { | 375 | { |
376 | int ret = 0; | 376 | int ret = 0; |
377 | int num; | 377 | int num; |
@@ -390,7 +390,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call) | |||
390 | return ret; | 390 | return ret; |
391 | } | 391 | } |
392 | 392 | ||
393 | void unreg_event_syscall_exit(struct ftrace_event_call *call) | 393 | static void unreg_event_syscall_exit(struct ftrace_event_call *call) |
394 | { | 394 | { |
395 | int num; | 395 | int num; |
396 | 396 | ||
@@ -459,7 +459,7 @@ unsigned long __init __weak arch_syscall_addr(int nr) | |||
459 | return (unsigned long)sys_call_table[nr]; | 459 | return (unsigned long)sys_call_table[nr]; |
460 | } | 460 | } |
461 | 461 | ||
462 | int __init init_ftrace_syscalls(void) | 462 | static int __init init_ftrace_syscalls(void) |
463 | { | 463 | { |
464 | struct syscall_metadata *meta; | 464 | struct syscall_metadata *meta; |
465 | unsigned long addr; | 465 | unsigned long addr; |