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)
commitdbaf2877e9ad0ac77c463d1bf87b2eb7efc46160
treed5b7f75eb7433c9c9b37460ff5e9a071fd34e500
parent253c8dde3cf60879d37b5fa47bde4a62c295c72b
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