]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: allow specifying helper for BPF_SK_LOOKUP
authorLorenz Bauer <lmb@cloudflare.com>
Fri, 22 Mar 2019 01:54:04 +0000 (09:54 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 01:59:11 +0000 (18:59 -0700)
commit8ef8edb534995a43b01ec948a85772075e91f9ac
treed5b7f75eb7433c9c9b37460ff5e9a071fd34e500
parente4d25b34cc2f67537d5fd133095e1951608c45ab
selftests/bpf: allow specifying helper for BPF_SK_LOOKUP

Make the BPF_SK_LOOKUP macro take a helper function, to ease
writing tests for new helpers.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c
tools/testing/selftests/bpf/verifier/ref_tracking.c
tools/testing/selftests/bpf/verifier/unpriv.c