[PATCH v2 11/11] kernel: add KERNEL_BPF_EVENTS config option

Stijn Tintel stijn at linux-ipv6.be
Sun Apr 3 09:14:53 PDT 2022


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.

Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 config/Config-kernel.in | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index a5e9ef477b..b77183e8f7 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -450,10 +450,20 @@ 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
-	depends on KERNEL_KPROBES
 	default n
+	depends on KERNEL_KPROBES
 
 config KERNEL_AIO
 	bool "Compile the kernel with asynchronous IO support"
-- 
2.35.1




More information about the openwrt-devel mailing list