commit | aa43f390d29d31424f92137827f09c4fdcb60d45 | [log] [tgz] |
---|---|---|
author | Quentin Monnet <quentin@isovalent.com> | Mon Feb 07 18:28:18 2022 +0000 |
committer | Quentin Monnet <qmonnet+github@qoba.lt> | Mon Feb 07 18:33:45 2022 +0000 |
tree | cd079c7baed98759d6e3b93718bbe01b0952e1da | |
parent | ddbe54d2ae1314727a81b87d19fe3c9e7118ae1a [diff] |
sync: Pull latest bpftool changes from kernel Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: c446fdacb10dcb3b9a9ed3b91d91e72d71d94b03 Checkpoint bpf-next commit: 227a0713b319e7a8605312dee1c97c97a719a9fc Baseline bpf commit: e2bcbd7769ee8f05e1b3d10848aace98973844e4 Checkpoint bpf commit: 77b1b8b43ec3c060ecf7e926a92b0f8772171046 Latest bpftool version: 5.16.0+227a0713b319 Alexei Starovoitov (2): libbpf: Add support for bpf iter in light skeleton. libbpf: Open code raw_tp_open and link_create commands. Andrii Nakryiko (2): bpftool: Stop supporting BPF offload-enabled feature probing bpftool: Fix uninit variable compilation warning Delyan Kratunov (1): bpftool: Migrate from bpf_prog_test_run_xattr Jakub Sitnicki (1): selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads include/uapi/linux/bpf.h | 3 ++- src/common.c | 2 +- src/feature.c | 29 +++++++++++++++++------------ src/gen.c | 7 +++++-- src/prog.c | 5 ++--- 5 files changed, 27 insertions(+), 19 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)