[PATCH v2 0/2] bpf: add xchg and fix rte_bpf_dump
Marat Khalili
marat.khalili at huawei.com
Thu Dec 18 18:09:11 CET 2025
Two patches that are not exectly functionally related, but one depends
on the other code-wise.
Atomic exchange is particularly useful since it can be used not just for
exchange per se, but also as atomic store.
Incidentally it was discovered that rte_bpf_dump does not support not
just atomics but also some other instructions.
v2: Fix CI failure: do not assume in tests that all platforms have JIT.
Marat Khalili (2):
bpf: add atomic xchg support
bpf: dump additional instructions
app/test/test_bpf.c | 459 ++++++++++++++++++++++++++++++++++++++++
lib/bpf/bpf_def.h | 5 +
lib/bpf/bpf_dump.c | 69 ++++--
lib/bpf/bpf_exec.c | 35 ++-
lib/bpf/bpf_jit_arm64.c | 59 ++++--
lib/bpf/bpf_jit_x86.c | 37 +++-
lib/bpf/bpf_validate.c | 22 +-
7 files changed, 637 insertions(+), 49 deletions(-)
--
2.43.0
More information about the dev
mailing list