selftests/bpf: Refactor stacktrace_map case with skeleton
authorTao Chen <chen.dylane@linux.dev>
Thu, 25 Sep 2025 17:50:29 +0000 (01:50 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 25 Sep 2025 23:17:14 +0000 (16:17 -0700)
commit363b17e273f0929ba7791231a0bbb5424204d93a
tree2cddb3e1e60480a68ad20562a99eb3224d33de00
parent17f0d1f6321caa95699b8f96baf12e654d7b8d60
selftests/bpf: Refactor stacktrace_map case with skeleton

The loading method of the stacktrace_map test case looks too outdated,
refactor it with skeleton, and we can use global variable feature in
the next patch.

Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250925175030.1615837-2-chen.dylane@linux.dev
tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c
tools/testing/selftests/bpf/progs/stacktrace_map.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_stacktrace_map.c [deleted file]