diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-11-11 21:51:49 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-17 13:50:25 -0800 |
commit | af5395c214c15c18de3decf2229373a8c88c4fde (patch) | |
tree | d378a62b132af1c2532f745e22c99ac69c40bba2 /arch/xtensa/Kconfig | |
parent | 9f24f3c1067c8e4ffbbcd759180b422c9a761b1b (diff) | |
download | linux-stable-af5395c214c15c18de3decf2229373a8c88c4fde.tar.gz linux-stable-af5395c214c15c18de3decf2229373a8c88c4fde.tar.bz2 linux-stable-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/Kconfig')
-rw-r--r-- | arch/xtensa/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 55d13b589ff3..5a27a6fd3a1c 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -29,6 +29,7 @@ config XTENSA select HAVE_OPROFILE select HAVE_PERF_EVENTS select HAVE_STACKPROTECTOR + select HAVE_SYSCALL_TRACEPOINTS select IRQ_DOMAIN select MODULES_USE_ELF_RELA select PERF_USE_VMALLOC |