[PATCH 0/2] Fix compilation of net selftests
Stefan Bader
stefan.bader at canonical.com
Wed May 29 10:38:06 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1829812
In cf651d7007 "selftests/bpf: skip verifier tests for unsupported
program types" (v5.0.7) the selftests start to use a function which
was not backported, yet.
The following 2 patches which were cherry-picked (the second one
with -C2) from upstream add the required capabilities and probes:
Quentin Monnet (2):
tools: bpftool: add basic probe capability, probe syscall availability
tools: bpftool: add probes for eBPF program types
It is somewhat large but most is additions and all to tools sub-
directory which is not part of the kernel.
-Stefan
.../bpftool/Documentation/bpftool-cgroup.rst | 1 +
.../bpftool/Documentation/bpftool-feature.rst | 60 ++++++
.../bpf/bpftool/Documentation/bpftool-map.rst | 1 +
.../bpf/bpftool/Documentation/bpftool-net.rst | 1 +
.../bpftool/Documentation/bpftool-perf.rst | 1 +
.../bpftool/Documentation/bpftool-prog.rst | 1 +
tools/bpf/bpftool/Documentation/bpftool.rst | 1 +
tools/bpf/bpftool/feature.c | 177 ++++++++++++++++++
tools/bpf/bpftool/main.c | 3 +-
tools/bpf/bpftool/main.h | 1 +
tools/lib/bpf/Build | 2 +-
tools/lib/bpf/libbpf.h | 11 ++
tools/lib/bpf/libbpf.map | 5 +
tools/lib/bpf/libbpf_probes.c | 95 ++++++++++
14 files changed, 358 insertions(+), 2 deletions(-)
create mode 100644 tools/bpf/bpftool/Documentation/bpftool-feature.rst
create mode 100644 tools/bpf/bpftool/feature.c
create mode 100644 tools/lib/bpf/libbpf_probes.c
--
2.17.1
More information about the kernel-team
mailing list