summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-07-21 21:20:06 +0200
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-07-21 21:20:06 +0200
commit426a6befd01f90061968f8f4ae22fc4ec74256b2 (patch)
treebe51d308bbd022bd9f0922e0ee150bbaf69bed3e /tools/perf/scripts/python/bin/stackcollapse-report
parent5eb8921371c6fd117d4a328b6053dfda38707df8 (diff)
parenta1b37972efc0b8b01221caf09376654f7a401875 (diff)
Merge branch 'riscv-bpf-add-support-for-signed-operations-and-32-bit-atomics'
Kuan-Wei Chiu says: ==================== riscv, bpf: Add support for signed operations and 32-bit atomics Add support for missing signed operations and 32-bit atomics in the RV32 BPF JIT compiler. The current implementation lacks support for BPF_SDIV, BPF_SMOD, and BPF_MOVSX, ignoring the instruction offset field and treating them as unsigned or zero-extended. Introduce support for these operations by checking the offset field and emitting the corresponding instructions. Additionally, we leverage the mandatory A extension to natively support 32-bit BPF atomics (and, or, xor, xchg) by mapping them directly to amo*.w instructions. BPF_CMPXCHG continues to fall back to the interpreter. As a result, test_bpf.ko now runs with 0 failures, and the total number of successfully JIT'ed test cases increases from 843 to 902. Tested-by: Pu Lehui <pulehui@huawei.com> --- Changes in v4: - Add a 'dst' param to emit_bpf_atomic(). Changes in v3: - Pass insn directly to emit_alu_r32(). - Remove the Fixes: tag and update title. - Consolidate size, mode, and off into insn for emit_store_r64(). Changes in v2: - Add missing Fixes tags. - Fix memory ordering by emitting aq=1, rl=1 Kuan-Wei Chiu (3): riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT riscv, bpf: Add support for BPF_MOVSX in RV32 JIT riscv, bpf: Add 32 bit atomic operations to RV32 JIT arch/riscv/net/bpf_jit_comp32.c | 111 +++++++++++++++++++++++++++----- 1 file changed, 95 insertions(+), 16 deletions(-) ==================== Link: https://patch.msgid.link/20260714002451.4091139-1-visitorckw@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions