mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
Blacklist properly on all archs
The way to blacklist notrace functions for kprobes was not using the proper kconfig which caused some archs (powerpc) from blacklisting them. -----BEGIN PGP SIGNATURE----- iIoEABYIADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCX/y/kRQccm9zdGVkdEBn b29kbWlzLm9yZwAKCRAp5XQQmuv6qqUNAP9AAvvNt1xEA9XF1fsiYTEZuRZJYh70 kmraYV2r35EPVwD+ORLRFO5eIL8j4SQlome3MuC1iFLak9SKVT5pWOLcDQI= =AtWi -----END PGP SIGNATURE----- Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace Pull tracing fix from Steven Rostedt: "Blacklist properly on all archs. The code to blacklist notrace functions for kprobes was not using the right kconfig option, which caused some archs (powerpc) to possibly not blacklist them" * tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing/kprobes: Do the notrace functions check without kprobes on ftrace
This commit is contained in:
commit
a0d54b4f5b
@ -538,7 +538,7 @@ config KPROBE_EVENTS
|
||||
config KPROBE_EVENTS_ON_NOTRACE
|
||||
bool "Do NOT protect notrace function from kprobe events"
|
||||
depends on KPROBE_EVENTS
|
||||
depends on KPROBES_ON_FTRACE
|
||||
depends on DYNAMIC_FTRACE
|
||||
default n
|
||||
help
|
||||
This is only for the developers who want to debug ftrace itself
|
||||
|
@ -434,7 +434,7 @@ static int disable_trace_kprobe(struct trace_event_call *call,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_KPROBES_ON_FTRACE) && \
|
||||
#if defined(CONFIG_DYNAMIC_FTRACE) && \
|
||||
!defined(CONFIG_KPROBE_EVENTS_ON_NOTRACE)
|
||||
static bool __within_notrace_func(unsigned long addr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user