

selftests/bpf/progs/socket_cookie_prog.c | 9 +. selftests/bpf/progs/sample_map_ret0.c | 18 +.

testing/selftests/bpf/progs/netcnt_prog.c | 22 +. selftests/bpf/progs/get_cgroup_id_kern.c | 18 +. Tools/testing/selftests/bpf/progs/bpf_flow.c | 18 +. Selftests/bpf: switch tests to BTF-defined map definitions Selftests/bpf: add test for BTF-defined maps Libbpf: allow specifying map definitions using BTF Libbpf: split initialization and loading of BTF Libbpf: identify maps by section index in addition to offset Libbpf: extract BTF loading and simplify ELF parsing logic Libbpf: add common min/max macro to libbpf_internal.h Patch #8 converts test BPF map definitions to use BTF way. Patch #7 adds new test for BTF-defined map definition.

Patch #6 adds support for BTF-defined maps.

Preserve original BTF at the time of map initialization. Patch #5 splits BTF intialization from sanitization/loading into kernel to Used anymore and makes assumption that all map definitions reside in single Patch #4 adds support for map definitions in multiple ELF sections andĭeprecates bpf_object_find_map_by_offset() API which doesn't appear to be Patch #3 refactors map initialization logic into user-provided maps and globalĭata maps, in preparation to adding another way (BTF-defined maps). BTF.ext loading loging from elf_collect(). Patch #1 centralizes commonly used min/max macro in libbpf_internal.h. See details and examples in description for patch #6. Which allows for easy extensibility, preserving forward and backwardĬompatibility. This patch set implements initial version (as discussed at LSF/MM2019Ĭonference) of a new way to specify BPF maps, relying on BTF type information, To: andrii.nakryiko, netdev, bpf, ast, daniel, kernel-team +Cc: Andrii Nakryiko ` (7 more replies) 0 siblings, 8 replies 41+ messages in threadįrom: Andrii Nakryiko 20:21 UTC ( / raw) 20:21 ` libbpf: add common min/max macro to libbpf_internal.h Andrii Nakryiko BTF-defined BPF map definitions All of help / color / mirror / Atom feed * BTF-defined BPF map definitions 20:21 Andrii Nakryiko
