aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/config
diff options
context:
space:
mode:
authorDaniel Müller <deso@posteo.net>2022-10-25 23:15:46 +0000
committerAlexei Starovoitov <ast@kernel.org>2022-10-25 23:42:03 -0700
commit5ed88f81511ce695692f0510ab3ca17eee68eff6 (patch)
tree6ee5a04feab0d701dfbba1dc6ce7a8362ccf5a76 /tools/testing/selftests/bpf/config
parentMerge branch 'bpf: Implement cgroup local storage available to non-cgroup-attached bpf progs' (diff)
downloadwireguard-linux-5ed88f81511ce695692f0510ab3ca17eee68eff6.tar.xz
wireguard-linux-5ed88f81511ce695692f0510ab3ca17eee68eff6.zip
selftests/bpf: Panic on hard/soft lockup
When running tests, we should probably accept any help we can get when it comes to detecting issues early or making them more debuggable. We have seen a few cases where a test_progs_noalu32 run, for example, encountered a soft lockup and stopped making progress. It was only interrupted once we hit the overall test timeout [0]. We can not and do not want to necessarily rely on test timeouts, because those rely on infrastructure provided by the environment we run in (and which is not present in tools/testing/selftests/bpf/vmtest.sh, for example). To that end, let's enable panics on soft as well as hard lockups to fail fast should we encounter one. That's happening in the configuration indented to be used for selftests (including when using vmtest.sh or when running in BPF CI). [0] https://github.com/kernel-patches/bpf/runs/7844499997 Signed-off-by: Daniel Müller <deso@posteo.net> Link: https://lore.kernel.org/r/20221025231546.811766-1-deso@posteo.net Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/config')
-rw-r--r--tools/testing/selftests/bpf/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 9213565c0311..7a99a6728169 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -1,4 +1,6 @@
CONFIG_BLK_DEV_LOOP=y
+CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
CONFIG_BPF=y
CONFIG_BPF_EVENTS=y
CONFIG_BPF_JIT=y