diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-10-06 22:29:37 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-06 22:29:37 -0700 |
commit | 05949f63055fcf53947886ddb8e23c8a5d41bd80 (patch) | |
tree | 4a38fb900fbced35eab34809744fb2de26a494c2 /tools/bpf/bpftool/prog.c | |
parent | a9eb048d5615152dc4b8aedb7e704a4e59bc2205 (diff) | |
parent | 24f25763d6de229e8ada7616db76fd9ba83775e9 (diff) |
Merge branch 'autogen-bpf-helpers'
Andrii Nakryiko says:
====================
This patch set adds ability to auto-generate list of BPF helper definitions.
It relies on existing scripts/bpf_helpers_doc.py and include/uapi/linux/bpf.h
having a well-defined set of comments. bpf_helper_defs.h contains all BPF
helper signatures which stay in sync with latest bpf.h UAPI. This
auto-generated header is included from bpf_helpers.h, while all previously
hand-written BPF helper definitions are simultaneously removed in patch #3.
The end result is less manually maintained and redundant boilerplate code,
while also more consistent and well-documented set of BPF helpers. Generated
helper definitions are completely independent from a specific bpf.h on
a target system, because it doesn't use BPF_FUNC_xxx enums.
v3->v4:
- instead of libbpf's Makefile, integrate with selftest/bpf's Makefile (Alexei);
v2->v3:
- delete bpf_helper_defs.h properly (Alexei);
v1->v2:
- add bpf_helper_defs.h to .gitignore and `make clean` (Alexei).
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions