From: Stijn Tintel Date: Sun, 20 Feb 2022 01:32:23 +0000 (+0200) Subject: kernel: add KERNEL_BPF_EVENTS config option X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1cc31ce401aef02f268e8afc34fc4aad892ac9b1;p=openwrt%2Fstaging%2Fstintel.git kernel: add KERNEL_BPF_EVENTS config option This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY for sending data from BPF programs to user-space for post-processing or logging. As this symbol exposes KERNEL_BPF_KPROBE_OVERRIDE, also add a config option for it. Signed-off-by: Stijn Tintel --- diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 06619fcbb2..3725247046 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -450,6 +450,22 @@ config KERNEL_KPROBE_EVENTS bool default y if KERNEL_KPROBES + +config KERNEL_BPF_EVENTS + bool "Compile the kernel with BPF event support" + default n + select KERNEL_KPROBES + help + Allows to attach BPF programs to kprobe, uprobe and tracepoint events. + This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY + for sending data from BPF programs to user-space for post-processing + or logging. + +config KERNEL_BPF_KPROBE_OVERRIDE + bool + default n + depends on KERNEL_BPF_EVENTS + config KERNEL_AIO bool "Compile the kernel with asynchronous IO support" default y if !SMALL_FLASH