Skip to contentSkip to conversation

selftests: bpf: add config fragment BPF_JIT

PATCH Applied Anders Roxell 2 participants 2 messages Aug 20, 2019 – Aug 21, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: bpf: add config fragment BPF_JIT

When running test_kmod.sh the following shows up

 # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_enable #
 # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_harden #

Rework to enable CONFIG_BPF_JIT to solve "No such file or directory"

---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/bpf/config +1 -0
index f7a0744db31e..5dc109f4c097 100644
@@ -34,3 +34,4 @@ CONFIG_NET_MPLS_GSO=m
 CONFIG_MPLS_ROUTING=m
 CONFIG_MPLS_IPTUNNEL=m
 CONFIG_IPV6_SIT=m
+CONFIG_BPF_JIT=y
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw
Quoted 10 lines · Anders Roxell

When running test_kmod.sh the following shows up

  # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory
  cannot: stat_/proc/sys/net/core/bpf_jit_enable #
  # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory
  cannot: stat_/proc/sys/net/core/bpf_jit_harden #

Rework to enable CONFIG_BPF_JIT to solve "No such file or directory"

Applied, thanks!