selftests/bpf: add raw_tp/tp_btf BPF cookie subtests
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 19 Mar 2024 23:38:52 +0000 (16:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Mar 2024 06:05:34 +0000 (23:05 -0700)
commit51146ff0fae309a558bc8ab6cbf6cfda17356993
tree53411f9aa32fbcae919dc97e705a7598893d5156
parent36ffb2023e3703a64266ca5fed30f710b1263c70
selftests/bpf: add raw_tp/tp_btf BPF cookie subtests

Add test validating BPF cookie can be passed during raw_tp/tp_btf
attachment and can be retried at runtime with bpf_get_attach_cookie()
helper.

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Message-ID: <20240319233852.1977493-6-andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
tools/testing/selftests/bpf/progs/test_bpf_cookie.c