[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181019135103.3602-1-daniel@iogearbox.net>
Date: Fri, 19 Oct 2018 15:51:01 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: alexei.starovoitov@...il.com
Cc: peterz@...radead.org, paulmck@...ux.vnet.ibm.com,
will.deacon@....com, acme@...hat.com, yhs@...com,
john.fastabend@...il.com, netdev@...r.kernel.org,
Daniel Borkmann <daniel@...earbox.net>
Subject: [PATCH bpf-next v2 0/2] improve and fix barriers for walking perf ring buffer
This set first adds smp_* barrier variants to tools infrastructure
and updates perf and libbpf to make use of them. For details, please
see individual patches, thanks!
Arnaldo, if there are no objections, could this be routed via bpf-next
with Acked-by's due to later dependencies in libbpf? Alternatively,
I could also get the 2nd patch out during merge window, but perhaps
it's okay to do in one go as there shouldn't be much conflict in perf
itself.
Thanks!
v1 -> v2:
- add common helper and switch to acquire/release variants
when possible, thanks Peter!
Daniel Borkmann (2):
tools, perf: add and use optimized ring_buffer_{read_head,write_tail} helpers
bpf, libbpf: use correct barriers in perf ring buffer walk
tools/arch/arm64/include/asm/barrier.h | 70 +++++++++++++++++++++++++++++
tools/arch/ia64/include/asm/barrier.h | 13 ++++++
tools/arch/powerpc/include/asm/barrier.h | 16 +++++++
tools/arch/s390/include/asm/barrier.h | 13 ++++++
tools/arch/sparc/include/asm/barrier_64.h | 13 ++++++
tools/arch/x86/include/asm/barrier.h | 14 ++++++
tools/include/asm/barrier.h | 35 +++++++++++++++
tools/include/linux/ring_buffer.h | 73 +++++++++++++++++++++++++++++++
tools/lib/bpf/libbpf.c | 10 ++---
tools/perf/util/mmap.h | 15 ++-----
10 files changed, 254 insertions(+), 18 deletions(-)
create mode 100644 tools/include/linux/ring_buffer.h
--
2.9.5
Powered by blists - more mailing lists