diff options
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 97a2454760b0..85291c4de406 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -1,4 +1,5 @@ | |||
1 | #include <trace/syscall.h> | 1 | #include <trace/syscall.h> |
2 | #include <trace/events/syscalls.h> | ||
2 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
3 | #include <linux/ftrace.h> | 4 | #include <linux/ftrace.h> |
4 | #include <linux/perf_counter.h> | 5 | #include <linux/perf_counter.h> |
@@ -288,7 +289,7 @@ int reg_event_syscall_enter(void *ptr) | |||
288 | return -ENOSYS; | 289 | return -ENOSYS; |
289 | mutex_lock(&syscall_trace_lock); | 290 | mutex_lock(&syscall_trace_lock); |
290 | if (!sys_refcount_enter) | 291 | if (!sys_refcount_enter) |
291 | ret = register_trace_syscall_enter(ftrace_syscall_enter); | 292 | ret = register_trace_sys_enter(ftrace_syscall_enter); |
292 | if (ret) { | 293 | if (ret) { |
293 | pr_info("event trace: Could not activate" | 294 | pr_info("event trace: Could not activate" |
294 | "syscall entry trace point"); | 295 | "syscall entry trace point"); |
@@ -313,7 +314,7 @@ void unreg_event_syscall_enter(void *ptr) | |||
313 | sys_refcount_enter--; | 314 | sys_refcount_enter--; |
314 | clear_bit(num, enabled_enter_syscalls); | 315 | clear_bit(num, enabled_enter_syscalls); |
315 | if (!sys_refcount_enter) | 316 | if (!sys_refcount_enter) |
316 | unregister_trace_syscall_enter(ftrace_syscall_enter); | 317 | unregister_trace_sys_enter(ftrace_syscall_enter); |
317 | mutex_unlock(&syscall_trace_lock); | 318 | mutex_unlock(&syscall_trace_lock); |
318 | } | 319 | } |
319 | 320 | ||
@@ -329,7 +330,7 @@ int reg_event_syscall_exit(void *ptr) | |||
329 | return -ENOSYS; | 330 | return -ENOSYS; |
330 | mutex_lock(&syscall_trace_lock); | 331 | mutex_lock(&syscall_trace_lock); |
331 | if (!sys_refcount_exit) | 332 | if (!sys_refcount_exit) |
332 | ret = register_trace_syscall_exit(ftrace_syscall_exit); | 333 | ret = register_trace_sys_exit(ftrace_syscall_exit); |
333 | if (ret) { | 334 | if (ret) { |
334 | pr_info("event trace: Could not activate" | 335 | pr_info("event trace: Could not activate" |
335 | "syscall exit trace point"); | 336 | "syscall exit trace point"); |
@@ -354,7 +355,7 @@ void unreg_event_syscall_exit(void *ptr) | |||
354 | sys_refcount_exit--; | 355 | sys_refcount_exit--; |
355 | clear_bit(num, enabled_exit_syscalls); | 356 | clear_bit(num, enabled_exit_syscalls); |
356 | if (!sys_refcount_exit) | 357 | if (!sys_refcount_exit) |
357 | unregister_trace_syscall_exit(ftrace_syscall_exit); | 358 | unregister_trace_sys_exit(ftrace_syscall_exit); |
358 | mutex_unlock(&syscall_trace_lock); | 359 | mutex_unlock(&syscall_trace_lock); |
359 | } | 360 | } |
360 | 361 | ||
@@ -420,7 +421,7 @@ int reg_prof_syscall_enter(char *name) | |||
420 | 421 | ||
421 | mutex_lock(&syscall_trace_lock); | 422 | mutex_lock(&syscall_trace_lock); |
422 | if (!sys_prof_refcount_enter) | 423 | if (!sys_prof_refcount_enter) |
423 | ret = register_trace_syscall_enter(prof_syscall_enter); | 424 | ret = register_trace_sys_enter(prof_syscall_enter); |
424 | if (ret) { | 425 | if (ret) { |
425 | pr_info("event trace: Could not activate" | 426 | pr_info("event trace: Could not activate" |
426 | "syscall entry trace point"); | 427 | "syscall entry trace point"); |
@@ -444,7 +445,7 @@ void unreg_prof_syscall_enter(char *name) | |||
444 | sys_prof_refcount_enter--; | 445 | sys_prof_refcount_enter--; |
445 | clear_bit(num, enabled_prof_enter_syscalls); | 446 | clear_bit(num, enabled_prof_enter_syscalls); |
446 | if (!sys_prof_refcount_enter) | 447 | if (!sys_prof_refcount_enter) |
447 | unregister_trace_syscall_enter(prof_syscall_enter); | 448 | unregister_trace_sys_enter(prof_syscall_enter); |
448 | mutex_unlock(&syscall_trace_lock); | 449 | mutex_unlock(&syscall_trace_lock); |
449 | } | 450 | } |
450 | 451 | ||
@@ -481,7 +482,7 @@ int reg_prof_syscall_exit(char *name) | |||
481 | 482 | ||
482 | mutex_lock(&syscall_trace_lock); | 483 | mutex_lock(&syscall_trace_lock); |
483 | if (!sys_prof_refcount_exit) | 484 | if (!sys_prof_refcount_exit) |
484 | ret = register_trace_syscall_exit(prof_syscall_exit); | 485 | ret = register_trace_sys_exit(prof_syscall_exit); |
485 | if (ret) { | 486 | if (ret) { |
486 | pr_info("event trace: Could not activate" | 487 | pr_info("event trace: Could not activate" |
487 | "syscall entry trace point"); | 488 | "syscall entry trace point"); |
@@ -505,7 +506,7 @@ void unreg_prof_syscall_exit(char *name) | |||
505 | sys_prof_refcount_exit--; | 506 | sys_prof_refcount_exit--; |
506 | clear_bit(num, enabled_prof_exit_syscalls); | 507 | clear_bit(num, enabled_prof_exit_syscalls); |
507 | if (!sys_prof_refcount_exit) | 508 | if (!sys_prof_refcount_exit) |
508 | unregister_trace_syscall_exit(prof_syscall_exit); | 509 | unregister_trace_sys_exit(prof_syscall_exit); |
509 | mutex_unlock(&syscall_trace_lock); | 510 | mutex_unlock(&syscall_trace_lock); |
510 | } | 511 | } |
511 | 512 | ||