From bb839963b1f79970cae0558c78a872cf37d610a9 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Sat, 3 Aug 2024 15:55:18 +0300 Subject: [PATCH] kernel: add missing BTF symbol for 6.6 Enabling KERNEL_DEBUG_INFO_BTF and KERNEL_KPROBE_EVENTS on 6.6 exposes CONFIG_PROBE_EVENTS_BTF_ARGS in the kernel config. Add a build option for it to fix build failures with KERNEL_DEBUG_INFO_BTF and KERNEL_KPROBE_EVENTS enabled on targets using the 6.6 kernel. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 69e3fc925..614878537 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -564,6 +564,10 @@ config KERNEL_BPF_EVENTS for sending data from BPF programs to user-space for post-processing or logging. +config KERNEL_PROBE_EVENTS_BTF_ARGS + bool "Support BTF function arguments for probe events" + depends on KERNEL_DEBUG_INFO_BTF && KERNEL_KPROBE_EVENTS && LINUX_6_6 + config KERNEL_BPF_KPROBE_OVERRIDE bool depends on KERNEL_KPROBES