diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-11-12 06:51:49 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-17 22:50:25 +0100 |
commit | af5395c214c15c18de3decf2229373a8c88c4fde (patch) | |
tree | d378a62b132af1c2532f745e22c99ac69c40bba2 /arch/xtensa/include/asm/unistd.h | |
parent | xtensa: implement tracehook functions and enable HAVE_ARCH_TRACEHOOK (diff) | |
download | linux-af5395c214c15c18de3decf2229373a8c88c4fde.tar.xz linux-af5395c214c15c18de3decf2229373a8c88c4fde.zip |
xtensa: implement syscall tracepoints
Add TIF_SYSCALL_TRACEPOINT flag definition; add _TIF_SYSCALL_TRACEPOINT
to _TIF_WORK_MASK. Call trace_sys_enter from do_syscall_trace_enter and
trace_sys_exit from do_syscall_trace_leave when TIF_SYSCALL_TRACEPOINT
flag is set.
Add declaration of sys_call_table to arch/xtensa/include/asm/syscall.h
Add definition of NR_syscalls to arch/xtensa/include/asm/unistd.h
Select HAVE_SYSCALL_TRACEPOINTS.
This change allows tracing each syscall entry and exit through the
ftrace mechanism.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/unistd.h')
-rw-r--r-- | arch/xtensa/include/asm/unistd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/unistd.h b/arch/xtensa/include/asm/unistd.h index 574e5520968c..0d34629dafc5 100644 --- a/arch/xtensa/include/asm/unistd.h +++ b/arch/xtensa/include/asm/unistd.h @@ -22,4 +22,6 @@ #define __IGNORE_vfork /* use clone */ #define __IGNORE_fadvise64 /* use fadvise64_64 */ +#define NR_syscalls __NR_syscalls + #endif /* _XTENSA_UNISTD_H */ |