summaryrefslogtreecommitdiff
path: root/kernel/bpf/core.c
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2021-02-10 12:14:06 +0100
committerAlexei Starovoitov <ast@kernel.org>2021-02-11 17:44:41 -0800
commit6fdd671baaf587cca17603485f9ef4bf7a1f9be1 (patch)
tree904356219a31ab6feeed959b03fd47be8d28349f /kernel/bpf/core.c
parent6cd4dcc3fb8198fff6e6c2d7c622f78649fa2474 (diff)
selftests/bpf: Add a selftest for the tracing bpf_get_socket_cookie
This builds up on the existing socket cookie test which checks whether the bpf_get_socket_cookie helpers provide the same value in cgroup/connect6 and sockops programs for a socket created by the userspace part of the test. Instead of having an update_cookie sockops program tag a socket local storage with 0xFF, this uses both an update_cookie_sockops program and an update_cookie_tracing program which succesively tag the socket with 0x0F and then 0xF0. Signed-off-by: Florent Revest <revest@chromium.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: KP Singh <kpsingh@kernel.org> Link: https://lore.kernel.org/bpf/20210210111406.785541-5-revest@chromium.org
Diffstat (limited to 'kernel/bpf/core.c')
0 files changed, 0 insertions, 0 deletions