Re: [PATCH v2 bpf-next 2/2] selftests/bpf: add callchain_stackid

2020-07-15 Thread Andrii Nakryiko
On Tue, Jul 14, 2020 at 11:09 PM Song Liu wrote: > > 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 > --- > .../bpf/prog_tests/perf_event_stackmap.c | 12

[PATCH v2 bpf-next 2/2] selftests/bpf: add callchain_stackid

2020-07-14 Thread Song Liu
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 --- .../bpf/prog_tests/perf_event_stackmap.c | 120 ++ .../selftests/bpf/progs/perf_event_stackmap