-
- Downloads
arm64: ftrace: Add system call tracepoint
This patch allows system call entry or exit to be traced as ftrace events, ie. sys_enter_*/sys_exit_*, if CONFIG_FTRACE_SYSCALLS is enabled. Those events appear and can be controlled under ${sysfs}/tracing/events/syscalls/ Please note that we can't trace compat system calls here because AArch32 mode does not share the same syscall table with AArch64. Just define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS in order to avoid unexpected results (bogus syscalls reported or even hang-up). Acked-by:Will Deacon <will.deacon@arm.com> Signed-off-by:
AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by:
Will Deacon <will.deacon@arm.com>
Showing
- arch/arm64/Kconfig 1 addition, 0 deletionsarch/arm64/Kconfig
- arch/arm64/include/asm/ftrace.h 18 additions, 0 deletionsarch/arm64/include/asm/ftrace.h
- arch/arm64/include/asm/syscall.h 1 addition, 0 deletionsarch/arm64/include/asm/syscall.h
- arch/arm64/include/asm/unistd.h 2 additions, 0 deletionsarch/arm64/include/asm/unistd.h
- arch/arm64/kernel/ptrace.c 9 additions, 0 deletionsarch/arm64/kernel/ptrace.c
Please register or sign in to comment