diff options
author | Xu Kuohai <[email protected]> | 2024-04-16 14:42:08 +0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2024-04-16 17:19:41 +0200 |
commit | 10541b374aa05c8118cc6a529a615882e53f261b (patch) | |
tree | 59373141f5538e6004c743c0a6c0493ce6b7ca79 /scripts/tracing/draw_functrace.py | |
parent | dc7d7447b56bcc9cf79a9c22e4edad200a298e4c (diff) |
riscv, bpf: Fix incorrect runtime stats
When __bpf_prog_enter() returns zero, the s1 register is not set to zero,
resulting in incorrect runtime stats. Fix it by setting s1 immediately upon
the return of __bpf_prog_enter().
Fixes: 49b5e77ae3e2 ("riscv, bpf: Add bpf trampoline support for RV64")
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Pu Lehui <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/tracing/draw_functrace.py')
0 files changed, 0 insertions, 0 deletions