selftests/bpf: Add callchain_stackid
authorSong Liu <songliubraving@fb.com>
Thu, 23 Jul 2020 18:06:47 +0000 (11:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:16:35 +0000 (20:16 -0700)
commit1da4864c2b20f81afbb18b2a0b914d0c776331fc
treeda39dc8da10a5ce4dfd2548f297512d8ac7bbc11
parentd4b4dd6ce7709c2d2fe56dcfc15074ee18505bcb
selftests/bpf: Add callchain_stackid

This tests new helper function bpf_get_stackid_pe and bpf_get_stack_pe.
These two helpers have different implementation for perf_event with PEB
entries.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200723180648.1429892-5-songliubraving@fb.com
tools/testing/selftests/bpf/prog_tests/perf_event_stackmap.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/perf_event_stackmap.c [new file with mode: 0644]