kernel: add KERNEL_BPF_EVENTS config option
authorStijn Tintel <stijn@linux-ipv6.be>
Sun, 20 Feb 2022 01:32:23 +0000 (03:32 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 18 May 2022 10:32:06 +0000 (13:32 +0300)
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@linux-ipv6.be>
config/Config-kernel.in

index 1a3f6a8bdc2f060e6b531b0e5a4465a60cd85204..7cd7906dc98fe2aa1725ea07382bd1d139ecd380 100644 (file)
@@ -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"