diff options
author | Peter Zijlstra (Intel) <peterz@infradead.org> | 2022-09-03 16:11:53 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-09-16 23:16:48 +0300 |
commit | 9440155ccb948f8e3ce5308907a2e7378799be60 (patch) | |
tree | fa81b71d963b1d9ad87a5ced2571c932855cd035 /kernel | |
parent | bfeb7e399bacae4ee46ad978f5fce3e47f0978d6 (diff) | |
download | linux-9440155ccb948f8e3ce5308907a2e7378799be60.tar.xz |
ftrace: Add HAVE_DYNAMIC_FTRACE_NO_PATCHABLE
x86 will shortly start using -fpatchable-function-entry for purposes
other than ftrace, make sure the __patchable_function_entry section
isn't merged in the mcount_loc section.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220903131154.420467-2-jolsa@kernel.org
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 1052126bdca2..e9e95c790b8e 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -51,6 +51,12 @@ config HAVE_DYNAMIC_FTRACE_WITH_ARGS This allows for use of regs_get_kernel_argument() and kernel_stack_pointer(). +config HAVE_DYNAMIC_FTRACE_NO_PATCHABLE + bool + help + If the architecture generates __patchable_function_entries sections + but does not want them included in the ftrace locations. + config HAVE_FTRACE_MCOUNT_RECORD bool help |