Skip to content

Commit 235d2ef

Browse files
committed
Merge branch 'BPF selftests fixes'
Daan De Meyer says: ==================== This patch series fixes a few issues I've found while integrating the bpf selftests into systemd's mkosi development environment. ==================== Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
2 parents c21dc52 + d0c0b48 commit 235d2ef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,10 @@ TRUNNER_EXTRA_FILES := $(OUTPUT)/urandom_read $(OUTPUT)/bpf_testmod.ko \
532532
$(OUTPUT)/liburandom_read.so \
533533
$(OUTPUT)/xdp_synproxy \
534534
$(OUTPUT)/sign-file \
535-
ima_setup.sh verify_sig_setup.sh \
536-
$(wildcard progs/btf_dump_test_case_*.c)
535+
ima_setup.sh \
536+
verify_sig_setup.sh \
537+
$(wildcard progs/btf_dump_test_case_*.c) \
538+
$(wildcard progs/*.bpf.o)
537539
TRUNNER_BPF_BUILD_RULE := CLANG_BPF_BUILD_RULE
538540
TRUNNER_BPF_CFLAGS := $(BPF_CFLAGS) $(CLANG_CFLAGS) -DENABLE_ATOMICS_TESTS
539541
$(eval $(call DEFINE_TEST_RUNNER,test_progs))

tools/testing/selftests/bpf/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CONFIG_BPF_LIRC_MODE2=y
88
CONFIG_BPF_LSM=y
99
CONFIG_BPF_STREAM_PARSER=y
1010
CONFIG_BPF_SYSCALL=y
11-
CONFIG_BPF_UNPRIV_DEFAULT_OFF=n
11+
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
1212
CONFIG_CGROUP_BPF=y
1313
CONFIG_CRYPTO_HMAC=y
1414
CONFIG_CRYPTO_SHA256=y
@@ -71,7 +71,7 @@ CONFIG_NF_NAT=y
7171
CONFIG_RC_CORE=y
7272
CONFIG_SECURITY=y
7373
CONFIG_SECURITYFS=y
74-
CONFIG_TEST_BPF=y
74+
CONFIG_TEST_BPF=m
7575
CONFIG_USERFAULTFD=y
7676
CONFIG_VXLAN=y
7777
CONFIG_XDP_SOCKETS=y

0 commit comments

Comments
 (0)