summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorViacheslav Mitrofanov <v.v.mitrofanov@yadro.com>2023-05-05 10:20:57 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-06-20 22:55:24 +0300
commitee95b88d71b9cf7ac1085ebc014f161971e1be9a (patch)
treed49f81b52150bff37bc7be32b9fcc2ce608fcbd6 /tools/perf/scripts/python/stackcollapse.py
parent4681dacadeefa5ca6017e00736adc1d7dc963c6a (diff)
downloadlinux-ee95b88d71b9cf7ac1085ebc014f161971e1be9a.tar.xz
perf: RISC-V: Limit the number of counters returned from SBI
Perf gets the number of supported counters from SBI. If it happens that the number of returned counters more than RISCV_MAX_COUNTERS the code trusts it. It does not lead to an immediate problem but can potentially lead to it. Prevent getting more than RISCV_MAX_COUNTERS from SBI. Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Link: https://lore.kernel.org/r/20230505072058.1049732-1-v.v.mitrofanov@yadro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions