[PATCH v2 1/2] bpf: add atomic xchg support
Konstantin Ananyev
konstantin.ananyev at huawei.com
Fri Dec 19 14:03:58 CET 2025
> Add support for BPF atomic xchg instruction, and tests for it. This
> instruction can be produced using compiler intrinsics.
>
> Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
> ---
> app/test/test_bpf.c | 459 ++++++++++++++++++++++++++++++++++++++++
> lib/bpf/bpf_def.h | 5 +
> 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 +-
> 6 files changed, 580 insertions(+), 37 deletions(-)
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> 2.43.0
More information about the dev
mailing list