diff options
| author | Alexei Starovoitov <[email protected]> | 2022-04-29 03:03:30 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-04-29 03:03:30 +0000 |
| commit | a2c70dbc3407b99e716a362be2df3ed9bbed1d35 (patch) | |
| tree | 276cf5901a51ce01d1f62ae8d3e481cd2a3f5849 /tools/lib/bpf/bpf_core_read.h | |
| parent | selftests/bpf: Use target-less SEC() definitions in various tests (diff) | |
| parent | selftests/bpf: Test bpf_map__set_autocreate() and related log fixup logic (diff) | |
| download | kernel-a2c70dbc3407b99e716a362be2df3ed9bbed1d35.tar.gz kernel-a2c70dbc3407b99e716a362be2df3ed9bbed1d35.zip | |
Merge branch 'libbpf: allow to opt-out from BPF map creation'
Andrii Nakryiko says:
====================
Add bpf_map__set_autocreate() API which is a BPF map counterpart of
bpf_program__set_autoload() and serves similar goal of allowing to build more
flexible CO-RE applications. See patch #3 for example scenarios in which the
need for such API came up previously.
Patch #1 is a follow-up patch to previous patch set adding verifier log fixup
logic, making sure bpf_core_format_spec()'s return result is used for
something useful.
Patch #2 is a small refactoring to avoid unnecessary verbose memory management
around obj->maps array.
Patch #3 adds and API and corresponding BPF verifier log fix up logic to
provide human-comprehensible error message with useful details.
Patch #4 adds a simple selftest validating both the API itself and libbpf's
log fixup logic for it.
====================
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_core_read.h')
0 files changed, 0 insertions, 0 deletions
