aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index b9af87560adb..3c280d7ecb76 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -161,7 +161,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
161 static int init_enter_##sname(struct ftrace_event_call *call) \ 161 static int init_enter_##sname(struct ftrace_event_call *call) \
162 { \ 162 { \
163 int num, id; \ 163 int num, id; \
164 num = syscall_name_to_nr("sys"#sname); \ 164 num = __syscall_meta_##sname.syscall_nr; \
165 if (num < 0) \ 165 if (num < 0) \
166 return -ENOSYS; \ 166 return -ENOSYS; \
167 id = register_ftrace_event(&enter_syscall_print_##sname);\ 167 id = register_ftrace_event(&enter_syscall_print_##sname);\
@@ -197,7 +197,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \
197 static int init_exit_##sname(struct ftrace_event_call *call) \ 197 static int init_exit_##sname(struct ftrace_event_call *call) \
198 { \ 198 { \
199 int num, id; \ 199 int num, id; \
200 num = syscall_name_to_nr("sys"#sname); \ 200 num = __syscall_meta_##sname.syscall_nr; \
201 if (num < 0) \ 201 if (num < 0) \
202 return -ENOSYS; \ 202 return -ENOSYS; \
203 id = register_ftrace_event(&exit_syscall_print_##sname);\ 203 id = register_ftrace_event(&exit_syscall_print_##sname);\