浏览代码

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 <[email protected]>
Stijn Tintel 3 年之前
父节点
当前提交
8f5c9a7d94
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      config/Config-kernel.in

+ 11 - 1
config/Config-kernel.in

@@ -455,10 +455,20 @@ config KERNEL_KPROBE_EVENTS
 	bool
 	bool
 	default y if KERNEL_KPROBES
 	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
 config KERNEL_BPF_KPROBE_OVERRIDE
 	bool
 	bool
-	depends on KERNEL_KPROBES
 	default n
 	default n
+	depends on KERNEL_KPROBES
 
 
 config KERNEL_AIO
 config KERNEL_AIO
 	bool "Compile the kernel with asynchronous IO support"
 	bool "Compile the kernel with asynchronous IO support"