Files
kernel_google_redbull/kernel
Song Liu 828aa82189 UPSTREAM: 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.

Change-Id: I4f2cc8be3c9c25add04ea9aff270bbc9277a1ff7
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
2025-09-08 17:27:28 +03:00
..
2025-09-08 17:25:23 +03:00
2021-02-07 14:48:38 +01:00
2024-05-03 06:16:46 +00:00