From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: [PATCH bpf-next 0/3] improve and fix barriers for walking perf rb Date: Wed, 17 Oct 2018 16:41:53 +0200 Message-ID: <20181017144156.16639-1-daniel@iogearbox.net> Cc: peterz@infradead.org, paulmck@linux.vnet.ibm.com, will.deacon@arm.com, acme@redhat.com, yhs@fb.com, john.fastabend@gmail.com, netdev@vger.kernel.org, Daniel Borkmann To: alexei.starovoitov@gmail.com Return-path: Received: from www62.your-server.de ([213.133.104.62]:36524 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbeJQWjm (ORCPT ); Wed, 17 Oct 2018 18:39:42 -0400 Sender: netdev-owner@vger.kernel.org List-ID: This set first adds smp_* barrier variants to tools infrastructure and in a second step 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. Thanks! Daniel Borkmann (3): tools: add smp_* barrier variants to include infrastructure tools, perf: use smp_{rmb,mb} barriers instead of {rmb,mb} bpf, libbpf: use proper barriers in perf ring buffer walk tools/arch/arm64/include/asm/barrier.h | 10 ++++++++++ tools/arch/x86/include/asm/barrier.h | 9 ++++++--- tools/include/asm/barrier.h | 11 +++++++++++ tools/lib/bpf/libbpf.c | 25 +++++++++++++++++++------ tools/perf/util/mmap.h | 5 +++-- 5 files changed, 49 insertions(+), 11 deletions(-) -- 2.9.5