From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933766AbcKPRno (ORCPT ); Wed, 16 Nov 2016 12:43:44 -0500 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:35677 "EHLO slow1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932247AbcKPRnk (ORCPT ); Wed, 16 Nov 2016 12:43:40 -0500 X-Originating-IP: 208.91.2.4 From: Joe Stringer To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, wangnan0@huawei.com, ast@fb.com, daniel@iogearbox.net, acme@kernel.org Subject: [PATCHv2 perf/core 0/2] libbpf: Synchronize implementations Date: Wed, 16 Nov 2016 09:43:22 -0800 Message-Id: <20161116174324.29675-1-joe@ovn.org> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update tools/lib/bpf to provide more functionality and improve interoperation with other tools that generate and use eBPF code: * The kernel uapi headers are a bit newer than the version in the tools/ directory; synchronize those. * samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend tools/lib/bpf/bpf* with these functions to bring them into parity. I've got a separate series to update samples/bpf/* to rely on these libraries, but there's a conflict with davem's tree at the moment so I suppose that the way forward is to get these patches through first, then take the samples through net-next at a later time. --- v2: Don't shift non-bpf code into libbpf. Drop the patch to synchronize ELF definitions with tc. v1: https://www.mail-archive.com/netdev@vger.kernel.org/msg135088.html First post. Joe Stringer (2): tools lib bpf: Sync {tools,}/include/uapi/linux/bpf.h tools lib bpf: Sync with samples/bpf/libbpf tools/include/uapi/linux/bpf.h | 51 +++++++++++ tools/lib/bpf/bpf.c | 107 +++++++++++++++++----- tools/lib/bpf/bpf.h | 202 +++++++++++++++++++++++++++++++++++++++-- tools/lib/bpf/libbpf.c | 3 +- 4 files changed, 330 insertions(+), 33 deletions(-) -- 2.9.3