mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
7c0afcad75
Fix build error when BPF_SYSCALL is not set/enabled but BPF_PRELOAD is by making BPF_PRELOAD depend on BPF_SYSCALL. ERROR: modpost: "bpf_preload_ops" [kernel/bpf/preload/bpf_preload.ko] undefined! Reported-by: kernel test robot <lkp@intel.com> Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20201105195109.26232-1-rdunlap@infradead.org
27 lines
857 B
Text
27 lines
857 B
Text
# 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
|
|
depends on BPF_SYSCALL
|
|
# The dependency on !COMPILE_TEST prevents it from being enabled
|
|
# in allmodconfig or allyesconfig configurations
|
|
depends on !COMPILE_TEST
|
|
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
|