Skip to content

Commit 1f5a4ad

Browse files
Roland McGrathtorvalds
authored andcommitted
tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
This adds the generic HAVE_ARCH_TRACEHOOK kconfig item. Each arch should add to some Kconfig file: select HAVE_ARCH_TRACEHOOK if the arch code uses all the latest hooks to enable newfangled tracing and debugging code. The comment in arch/Kconfig lists all the prerequisite arch support. When all these are available, setting HAVE_ARCH_TRACEHOOK will allow enabling any new features that depend on the modern arch interfaces. Signed-off-by: Roland McGrath <[email protected]> Cc: Oleg Nesterov <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 828c365 commit 1f5a4ad

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

arch/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,24 @@ config HAVE_KPROBES
5959
config HAVE_KRETPROBES
6060
def_bool n
6161

62+
#
63+
# An arch should select this if it provides all these things:
64+
#
65+
# task_pt_regs() in asm/processor.h or asm/ptrace.h
66+
# arch_has_single_step() if there is hardware single-step support
67+
# arch_has_block_step() if there is hardware block-step support
68+
# arch_ptrace() and not #define __ARCH_SYS_PTRACE
69+
# compat_arch_ptrace() and #define __ARCH_WANT_COMPAT_SYS_PTRACE
70+
# asm/syscall.h supplying asm-generic/syscall.h interface
71+
# linux/regset.h user_regset interfaces
72+
# CORE_DUMP_USE_REGSET #define'd in linux/elf.h
73+
# TIF_SYSCALL_TRACE calls tracehook_report_syscall_{entry,exit}
74+
# TIF_NOTIFY_RESUME calls tracehook_notify_resume()
75+
# signal delivery calls tracehook_signal_handler()
76+
#
77+
config HAVE_ARCH_TRACEHOOK
78+
def_bool n
79+
6280
config HAVE_DMA_ATTRS
6381
def_bool n
6482

0 commit comments

Comments
 (0)