aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLuke Nelson <[email protected]>2020-04-20 17:28:04 -0700
committerAlexei Starovoitov <[email protected]>2020-04-26 08:40:01 -0700
commit745abfaa9eafa597d31fdf24a3249e5206a98768 (patch)
tree7317971ec5e492834da0e4e0b0abd564995f32f8 /tools/perf/scripts/python/bin
parentae460c022453337850bdc36a36bf7596a6cfcf99 (diff)
bpf, riscv: Fix tail call count off by one in RV32 BPF JIT
This patch fixes an off by one error in the RV32 JIT handling for BPF tail call. Currently, the code decrements TCC before checking if it is less than zero. This limits the maximum number of tail calls to 32 instead of 33 as in other JITs. The fix is to instead check the old value of TCC before decrementing. Fixes: 5f316b65e99f ("riscv, bpf: Add RV32G eBPF JIT") Signed-off-by: Luke Nelson <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Xi Wang <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions