diff options
| author | Song Liu <songliubraving@fb.com> | 2020-07-23 11:06:44 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-25 20:16:34 -0700 |
| commit | 7b04d6d60fcfb5b2200ffebb9cfb90927bdfeec7 (patch) | |
| tree | 21487ebc03582d49dbf8a5f0a8231b93f32c7770 /tools/testing/selftests/bpf/prog_tests/perf_event_stackmap.c | |
| parent | Merge branch 'bpf_iter-for-map-elems' (diff) | |
| download | linux-7b04d6d60fcfb5b2200ffebb9cfb90927bdfeec7.tar.gz linux-7b04d6d60fcfb5b2200ffebb9cfb90927bdfeec7.zip | |
bpf: Separate bpf_get_[stack|stackid] for perf events BPF
Calling get_perf_callchain() on perf_events from PEBS entries may cause
unwinder errors. To fix this issue, the callchain is fetched early. Such
perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY.
Similarly, calling bpf_get_[stack|stackid] on perf_events from PEBS may
also cause unwinder errors. To fix this, add separate version of these
two helpers, bpf_get_[stack|stackid]_pe. These two hepers use callchain in
bpf_perf_event_data_kern->data->callchain.
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200723180648.1429892-2-songliubraving@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_event_stackmap.c')
0 files changed, 0 insertions, 0 deletions
