selftests: bpf: Add selftest for __sk_buff tstamp
authorStanislav Fomichev <sdf@google.com>
Tue, 15 Oct 2019 18:31:25 +0000 (11:31 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Oct 2019 23:24:26 +0000 (16:24 -0700)
commit95fbda1e37384b9c270218b52718c83ddf4bb34e
tree41e9be1d14ee013da8af794ddfa04985c38ae1c1
parentba94094818a811758570990648160a6ba2ca05cb
selftests: bpf: Add selftest for __sk_buff tstamp

Make sure BPF_PROG_TEST_RUN accepts tstamp and exports any
modifications that BPF program does.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191015183125.124413-2-sdf@google.com
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
tools/testing/selftests/bpf/progs/test_skb_ctx.c