[openwrt/openwrt] kernel: add KERNEL_BPF_EVENTS config option

LEDE Commits lede-commits at lists.infradead.org
Wed May 18 04:32:52 PDT 2022


stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/8f5c9a7d94dc7f945dbe1eea2d3fc508c477b788

commit 8f5c9a7d94dc7f945dbe1eea2d3fc508c477b788
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Sun Feb 20 03:32:23 2022 +0200

    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.
    
    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 1a3f6a8bdc..7cd7906dc9 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -455,10 +455,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"




More information about the lede-commits mailing list