diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2014-04-30 18:54:36 +0900 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-30 18:15:44 +0100 |
commit | 1bda9b270a49edbe30c77f1ba160e6535a568d60 (patch) | |
tree | 5ccfed262741f6f49910404b28c4543d43067f5a /arch/arm64/include/asm/syscall.h | |
parent | ea76465b82b819230ab16ab8ab1b460c09ed5b3b (diff) |
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: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'arch/arm64/include/asm/syscall.h')
-rw-r--r-- | arch/arm64/include/asm/syscall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/syscall.h index 89c047f9a971..d2552535541d 100644 --- a/arch/arm64/include/asm/syscall.h +++ b/arch/arm64/include/asm/syscall.h @@ -18,6 +18,7 @@ #include <linux/err.h> +extern const void *sys_call_table[]; static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) |