|
@@ -1,4 +1,5 @@
|
|
#include <trace/syscall.h>
|
|
#include <trace/syscall.h>
|
|
|
|
+#include <trace/events/syscalls.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/perf_counter.h>
|
|
#include <linux/perf_counter.h>
|
|
@@ -286,7 +287,7 @@ int reg_event_syscall_enter(void *ptr)
|
|
return -ENOSYS;
|
|
return -ENOSYS;
|
|
mutex_lock(&syscall_trace_lock);
|
|
mutex_lock(&syscall_trace_lock);
|
|
if (!sys_refcount_enter)
|
|
if (!sys_refcount_enter)
|
|
- ret = register_trace_syscall_enter(ftrace_syscall_enter);
|
|
|
|
|
|
+ ret = register_trace_sys_enter(ftrace_syscall_enter);
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_info("event trace: Could not activate"
|
|
pr_info("event trace: Could not activate"
|
|
"syscall entry trace point");
|
|
"syscall entry trace point");
|
|
@@ -311,7 +312,7 @@ void unreg_event_syscall_enter(void *ptr)
|
|
sys_refcount_enter--;
|
|
sys_refcount_enter--;
|
|
clear_bit(num, enabled_enter_syscalls);
|
|
clear_bit(num, enabled_enter_syscalls);
|
|
if (!sys_refcount_enter)
|
|
if (!sys_refcount_enter)
|
|
- unregister_trace_syscall_enter(ftrace_syscall_enter);
|
|
|
|
|
|
+ unregister_trace_sys_enter(ftrace_syscall_enter);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -327,7 +328,7 @@ int reg_event_syscall_exit(void *ptr)
|
|
return -ENOSYS;
|
|
return -ENOSYS;
|
|
mutex_lock(&syscall_trace_lock);
|
|
mutex_lock(&syscall_trace_lock);
|
|
if (!sys_refcount_exit)
|
|
if (!sys_refcount_exit)
|
|
- ret = register_trace_syscall_exit(ftrace_syscall_exit);
|
|
|
|
|
|
+ ret = register_trace_sys_exit(ftrace_syscall_exit);
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_info("event trace: Could not activate"
|
|
pr_info("event trace: Could not activate"
|
|
"syscall exit trace point");
|
|
"syscall exit trace point");
|
|
@@ -352,7 +353,7 @@ void unreg_event_syscall_exit(void *ptr)
|
|
sys_refcount_exit--;
|
|
sys_refcount_exit--;
|
|
clear_bit(num, enabled_exit_syscalls);
|
|
clear_bit(num, enabled_exit_syscalls);
|
|
if (!sys_refcount_exit)
|
|
if (!sys_refcount_exit)
|
|
- unregister_trace_syscall_exit(ftrace_syscall_exit);
|
|
|
|
|
|
+ unregister_trace_sys_exit(ftrace_syscall_exit);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -418,7 +419,7 @@ int reg_prof_syscall_enter(char *name)
|
|
|
|
|
|
mutex_lock(&syscall_trace_lock);
|
|
mutex_lock(&syscall_trace_lock);
|
|
if (!sys_prof_refcount_enter)
|
|
if (!sys_prof_refcount_enter)
|
|
- ret = register_trace_syscall_enter(prof_syscall_enter);
|
|
|
|
|
|
+ ret = register_trace_sys_enter(prof_syscall_enter);
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_info("event trace: Could not activate"
|
|
pr_info("event trace: Could not activate"
|
|
"syscall entry trace point");
|
|
"syscall entry trace point");
|
|
@@ -442,7 +443,7 @@ void unreg_prof_syscall_enter(char *name)
|
|
sys_prof_refcount_enter--;
|
|
sys_prof_refcount_enter--;
|
|
clear_bit(num, enabled_prof_enter_syscalls);
|
|
clear_bit(num, enabled_prof_enter_syscalls);
|
|
if (!sys_prof_refcount_enter)
|
|
if (!sys_prof_refcount_enter)
|
|
- unregister_trace_syscall_enter(prof_syscall_enter);
|
|
|
|
|
|
+ unregister_trace_sys_enter(prof_syscall_enter);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -479,7 +480,7 @@ int reg_prof_syscall_exit(char *name)
|
|
|
|
|
|
mutex_lock(&syscall_trace_lock);
|
|
mutex_lock(&syscall_trace_lock);
|
|
if (!sys_prof_refcount_exit)
|
|
if (!sys_prof_refcount_exit)
|
|
- ret = register_trace_syscall_exit(prof_syscall_exit);
|
|
|
|
|
|
+ ret = register_trace_sys_exit(prof_syscall_exit);
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_info("event trace: Could not activate"
|
|
pr_info("event trace: Could not activate"
|
|
"syscall entry trace point");
|
|
"syscall entry trace point");
|
|
@@ -503,7 +504,7 @@ void unreg_prof_syscall_exit(char *name)
|
|
sys_prof_refcount_exit--;
|
|
sys_prof_refcount_exit--;
|
|
clear_bit(num, enabled_prof_exit_syscalls);
|
|
clear_bit(num, enabled_prof_exit_syscalls);
|
|
if (!sys_prof_refcount_exit)
|
|
if (!sys_prof_refcount_exit)
|
|
- unregister_trace_syscall_exit(prof_syscall_exit);
|
|
|
|
|
|
+ unregister_trace_sys_exit(prof_syscall_exit);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
mutex_unlock(&syscall_trace_lock);
|
|
}
|
|
}
|
|
|
|
|