selftests/bpf: Add kprobe session cookie test
authorJiri Olsa <jolsa@kernel.org>
Tue, 30 Apr 2024 11:28:30 +0000 (13:28 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 30 Apr 2024 17:23:25 +0000 (10:23 -0700)
commita3a5113393ccfad2eb23ca091aa6e55b5bd67eb4
treeb575361002db6d53f2840aa2562b19dac72f64fc
parent0983b1697aefbf69f465f907b934b89bbce467ea
selftests/bpf: Add kprobe session cookie test

Adding kprobe session test that verifies the cookie value
get properly propagated from entry to return program.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240430112830.1184228-8-jolsa@kernel.org
tools/testing/selftests/bpf/bpf_kfuncs.h
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
tools/testing/selftests/bpf/progs/kprobe_multi_session_cookie.c [new file with mode: 0644]