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. Marat Khalili (2): bpf: add atomic xchg support bpf: dump additional instructions app/test/test_bpf.c | 458 ++++++++++++++++++++++++++++++++++++++++ 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, 636 insertions(+), 49 deletions(-) -- 2.43.0

