commit | 3c7700c4573279465ea96b0b6549edca2f1d48da | [log] [tgz] |
---|---|---|
author | Quentin Monnet <quentin@isovalent.com> | Mon Jan 24 17:29:42 2022 +0000 |
committer | Quentin Monnet <qmonnet+github@qoba.lt> | Mon Jan 24 17:43:27 2022 +0000 |
tree | ecf9ae875c27cd5030405db2d91582287cf5595f | |
parent | 6226609d657ab4df217442ad130be920533da04d [diff] |
sync: Pull latest bpftool changes from kernel Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: e80f2a0d194605553315de68284fc41969f81f62 Checkpoint bpf-next commit: 820e6e227c4053b6b631ae65ef1f65d560cb392b Baseline bpf commit: 343e53754b21ae45530623222aa079fecd3cf942 Checkpoint bpf commit: baa59504c1cd0cca7d41954a45ee0b3dc78e41a0 Latest bpftool version: 5.16.0-820e6e227c40 Andrii Nakryiko (2): libbpf: deprecate legacy BPF map definitions bpftool: use new API for attaching XDP program Raman Shukhau (1): bpftool: Adding support for BTF program names Usama Arif (1): uapi/bpf: Add missing description and returns for helper documentation YiFei Zhu (1): bpf: Add cgroup helpers bpf_{get,set}_retval to get/set syscall return value include/uapi/linux/bpf.h | 33 ++++++++++++++++++++++++++++++ src/cgroup.c | 6 ++++-- src/common.c | 44 ++++++++++++++++++++++++++++++++++++++++ src/main.c | 9 +++++++- src/main.h | 4 ++++ src/net.c | 2 +- src/prog.c | 28 ++++++++++++++++--------- 7 files changed, 112 insertions(+), 14 deletions(-) -- 2.32.0
This is a mirror of bpf-next Linux source tree's tools/bpf/bpftool
directory, plus its few dependencies from under kernel/bpf/
, and its supporting header files.
All the gory details of syncing can be found in scripts/sync-kernel.sh
script.
Some header files in this repo (include/linux/*.h
) are reduced versions of their counterpart files at bpf-next's tools/include/linux/*.h
to make compilation successful.
Please check out the manual pages for documentation about bpftool. A number of example invocations are also displayed in this blog post.
All general BPF questions, including kernel functionality, bpftool features and usage, should be sent to bpf@vger.kernel.org mailing list. You can subscribe to it here and search its archive here. Please search the archive before asking new questions. It very well might be that this was already addressed or answered before.
bpf@vger.kernel.org is monitored by many more people and they will happily try to help you with whatever issue you have. This repository's PRs and issues should be opened only for dealing with issues pertaining to specific way this bpftool mirror repo is set up and organized.
Required:
Optional:
This repository uses libbpf as a submodule. You can initialize it when cloning bpftool:
$ git clone --recurse-submodules https://github.com/libbpf/bpftool.git
Alternatively, if you have already cloned the repository, you can initialize the submodule by running the following command from within the repository:
$ git submodule update --init
To build bpftool:
$ cd src
$ make
To build and install bpftool on the system:
$ cd src # make install
Building bpftool in a separate directory is supported via the OUTPUT
variable:
$ mkdir /tmp/bpftool $ cd src $ OUTPUT=/tmp/bpftool make
Most of the output is suppressed by default, but detailed building logs can be displayed by passing V=1
:
$ cd src $ make V=1
The man pages for bpftool can be built with:
$ cd docs
$ make
They can be installed on the system with:
$ cd docs # make install
This work is dual-licensed under the GNU GPL v2.0 (only) license and the BSD 2-clause license. You can choose between one of them if you use this work.
SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)