diff options
author | Florent Revest <revest@chromium.org> | 2021-02-10 12:14:03 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-11 17:44:41 -0800 |
commit | c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd (patch) | |
tree | 717c986e70611b002a57850957d7132121c7ec9f /tools/testing/selftests/bpf/prog_tests/socket_cookie.c | |
parent | 07881ccbf40cc7893869f3f170301889ddca54ac (diff) | |
download | linux-c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd.tar.bz2 |
bpf: Expose bpf_get_socket_cookie to tracing programs
This needs a new helper that:
- can work in a sleepable context (using sock_gen_cookie)
- takes a struct sock pointer and checks that it's not NULL
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: KP Singh <kpsingh@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210210111406.785541-2-revest@chromium.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/socket_cookie.c')
0 files changed, 0 insertions, 0 deletions