vmtests: enable previously failing kprobe selftests

With fixes in selftests, these tests should now pass.
Also add ability to add comments to blacklist/whitelist to explain why certain
test is disabled.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
This commit is contained in:
Andrii Nakryiko
2020-03-12 18:54:43 -07:00
committed by Andrii Nakryiko
parent cd87f1568e
commit 6d64d927a2
3 changed files with 18 additions and 16 deletions

View File

@@ -1,12 +1,16 @@
attach_multi bpf_tcp_ca # STRUCT_OPS is missing
attach_probe cgroup_attach_multi # BPF_F_REPLACE_PROG missing
bpf_tcp_ca fentry_fexit # bpf_prog_test_tracing missing
fexit_bpf2bpf fentry_test # bpf_prog_test_tracing missing
link_pinning fexit_bpf2bpf # freplace is missing
perf_branches fexit_test # bpf_prog_test_tracing missing
perf_buffer link_pinning # bpf_link is missing
modify_return # fmod_ret is missing
ns_current_pid_tgid # bpf_get_ns_current_pid_tgid() helper is missing
perf_branches # bpf_read_branch_records() helper is missing
select_reuseport select_reuseport
send_signal send_signal # flaky
skb_ctx skb_ctx
sockmap_listen sockmap_listen # flaky
test_global_funcs test_global_funcs # kernel doesn't support BTF linkage=global on FUNCs
xdp_bpf2bpf # freplace is missing

View File

@@ -1,4 +1,2 @@
attach_probe send_signal # flaky
perf_buffer sockmap_listen # flaky
send_signal
sockmap_listen

View File

@@ -21,12 +21,12 @@ test_verifier() {
configs_path='libbpf/travis-ci/vmtest/configs' configs_path='libbpf/travis-ci/vmtest/configs'
blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}" blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}"
if [[ -s "${blacklist_path}" ]]; then if [[ -s "${blacklist_path}" ]]; then
BLACKLIST=$(cat "${blacklist_path}" | tr '\n' ',') BLACKLIST=$(cat "${blacklist_path}" | cut -d'#' -f1 | tr -s '[:space:]' ',')
fi fi
whitelist_path="$configs_path/whitelist/WHITELIST-${KERNEL}" whitelist_path="$configs_path/whitelist/WHITELIST-${KERNEL}"
if [[ -s "${whitelist_path}" ]]; then if [[ -s "${whitelist_path}" ]]; then
WHITELIST=$(cat "${whitelist_path}" | tr '\n' ',') WHITELIST=$(cat "${whitelist_path}" | cut -d'#' -f1 | tr -s '[:space:]' ',')
fi fi
cd libbpf/selftests/bpf cd libbpf/selftests/bpf