diff options
| author | Andrii Nakryiko <[email protected]> | 2024-04-04 00:26:39 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-04-04 20:08:01 +0000 |
| commit | 5e6a3c1ee693da1793739bb378b224bcf33d7f14 (patch) | |
| tree | 5d002e2fc869c08b88a93da73a604dbab6907ef1 /tools/bpf/bpftool/iter.c | |
| parent | bpf, riscv: Implement bpf_addr_space_cast instruction (diff) | |
| download | kernel-5e6a3c1ee693da1793739bb378b224bcf33d7f14.tar.gz kernel-5e6a3c1ee693da1793739bb378b224bcf33d7f14.zip | |
bpf: make bpf_get_branch_snapshot() architecture-agnostic
perf_snapshot_branch_stack is set up in an architecture-agnostic way, so
there is no reason for BPF subsystem to keep track of which
architectures do support LBR or not. E.g., it looks like ARM64 might soon
get support for BRBE ([0]), which (with proper integration) should be
possible to utilize using this BPF helper.
perf_snapshot_branch_stack static call will point to
__static_call_return0() by default, which just returns zero, which will
lead to -ENOENT, as expected. So no need to guard anything here.
[0] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/iter.c')
0 files changed, 0 insertions, 0 deletions
