aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2021-03-05 00:30:02 +0100
committerAlexei Starovoitov <ast@kernel.org>2021-03-16 12:18:49 -0700
commitba3b86b9cef0c72ae78173f2c4db8a08bf4d3770 (patch)
tree113ebc5fd57ee5f42f87482d4fda016c6a710208 /tools/perf/scripts/python/export-to-postgresql.py
parentbpf: selftests: Remove unused 'nospace_err' in tests for batched ops in array maps (diff)
downloadwireguard-linux-ba3b86b9cef0c72ae78173f2c4db8a08bf4d3770.tar.xz
wireguard-linux-ba3b86b9cef0c72ae78173f2c4db8a08bf4d3770.zip
s390/bpf: Implement new atomic ops
Implement BPF_AND, BPF_OR and BPF_XOR as the existing BPF_ADD. Since the corresponding machine instructions return the old value, BPF_FETCH happens by itself, the only additional thing that is required is zero-extension. There is no single instruction that implements BPF_XCHG on s390, so use a COMPARE AND SWAP loop. BPF_CMPXCHG, on the other hand, can be implemented by a single COMPARE AND SWAP. Zero-extension is automatically inserted by the verifier. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210304233002.149096-1-iii@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions