2020-08-19 12:27:58 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config USERMODE_DRIVER
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
menuconfig BPF_PRELOAD
|
|
|
|
bool "Preload BPF file system with kernel specific program and map iterators"
|
|
|
|
depends on BPF
|
2020-11-06 03:51:09 +08:00
|
|
|
depends on BPF_SYSCALL
|
2020-08-26 06:23:46 +08:00
|
|
|
# The dependency on !COMPILE_TEST prevents it from being enabled
|
|
|
|
# in allmodconfig or allyesconfig configurations
|
|
|
|
depends on !COMPILE_TEST
|
2020-08-19 12:27:58 +08:00
|
|
|
select USERMODE_DRIVER
|
|
|
|
help
|
|
|
|
This builds kernel module with several embedded BPF programs that are
|
|
|
|
pinned into BPF FS mount point as human readable files that are
|
|
|
|
useful in debugging and introspection of BPF programs and maps.
|
|
|
|
|
|
|
|
if BPF_PRELOAD
|
|
|
|
config BPF_PRELOAD_UMD
|
|
|
|
tristate "bpf_preload kernel module with user mode driver"
|
|
|
|
depends on CC_CAN_LINK
|
|
|
|
depends on m || CC_CAN_LINK_STATIC
|
|
|
|
default m
|
|
|
|
help
|
|
|
|
This builds bpf_preload kernel module with embedded user mode driver.
|
|
|
|
endif
|