]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Add BPF_ATOMIC_OP macro for BPF samples
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 18 Jan 2021 09:17:53 +0000 (10:17 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Jan 2021 22:10:35 +0000 (14:10 -0800)
commit45cafba86bb1b1da1d6ea5b1181dcb6d5cf7d360
tree1a2ad74291acc369ecd2ed4cf34447a191b9bc27
parent21c585f22aeaf4858ed69918162042143b04de34
samples/bpf: Add BPF_ATOMIC_OP macro for BPF samples

Brendan Jackman added extend atomic operations to the BPF instruction
set in commit 5f61e3495911 ("Merge branch 'Atomics for eBPF'"), which
introduces the BPF_ATOMIC_OP macro. However, that macro was missing
for the BPF samples. Fix that by adding it into bpf_insn.h.

Fixes: e33a8ac2716d ("bpf: Rename BPF_XADD and prepare to encode other atomics in .imm")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Link: https://lore.kernel.org/bpf/20210118091753.107572-1-bjorn.topel@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/bpf_insn.h