selftests/bpf: Test skipping stacktrace
authorNamhyung Kim <namhyung@kernel.org>
Mon, 14 Mar 2022 18:20:42 +0000 (11:20 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 21 Mar 2022 02:16:50 +0000 (19:16 -0700)
commite1cc1f39981b06ba22a0c92e800e9fd8ba59d2d3
tree35697b2416b06983a4afb4506890fcc8b8a16fe0
parentee2a098851bfbe8bcdd964c0121f4246f00ff41e
selftests/bpf: Test skipping stacktrace

Add a test case for stacktrace with skip > 0 using a small sized
buffer.  It didn't support skipping entries greater than or equal to
the size of buffer and filled the skipped part with 0.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220314182042.71025-2-namhyung@kernel.org
tools/testing/selftests/bpf/prog_tests/stacktrace_map_skip.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/stacktrace_map_skip.c [new file with mode: 0644]