diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-04-04 03:26:39 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-04-04 23:08:01 +0300 |
commit | 5e6a3c1ee693da1793739bb378b224bcf33d7f14 (patch) | |
tree | 5d002e2fc869c08b88a93da73a604dbab6907ef1 /block | |
parent | 21ab0b6d0cfcb8aa98e33baa83f933f963514027 (diff) | |
download | linux-5e6a3c1ee693da1793739bb378b224bcf33d7f14.tar.xz |
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/20240125094119.2542332-1-anshuman.khandual@arm.com/
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240404002640.1774210-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions