libbpf: Improve BPF load performance by selectively loading kmod BTFs - #13432
libbpf: Improve BPF load performance by selectively loading kmod BTFs#13432kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
Conversation
|
Upstream branch: 5e289c5 |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
|
Forwarding comment 5395875266 via email |
|
Forwarding comment 5395876275 via email |
71e031f to
909ca3a
Compare
|
Upstream branch: d83fba2 |
bef0d95 to
7e26cf6
Compare
909ca3a to
b010507
Compare
|
Upstream branch: ce36e38 |
7e26cf6 to
0e69805
Compare
b010507 to
975b11a
Compare
|
Upstream branch: 05ea1b6 |
0e69805 to
3070749
Compare
975b11a to
f8c8078
Compare
…en_opts Add btf_module_names and nr_btf_module_names fields to bpf_object_open_opts to support selective kernel module BTF loading. When btf_module_names is provided, libbpf loads BTFs only for the specified kernel modules and skips other module BTFs. If btf_module_names is NULL, all module BTFs are loaded as before. This avoids unnecessary module BTF loading and reduces BPF object loading time when only a subset of kernel module BTFs is needed. Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com> Signed-off-by: Fuyu Zhao <zhaofuyu@vivo.com>
Add selftests covering selective kernel module BTF loading through bpf_object_open_opts. The tests verify that loading succeeds when the required module BTF is requested, fails when only an unrelated module BTF is requested, and skips loading all module BTFs when an empty module BTF name list is provided. Signed-off-by: Fuyu Zhao <zhaofuyu@vivo.com>
|
Upstream branch: 1555de3 |
3070749 to
70a0890
Compare
Pull request for series with
subject: libbpf: Improve BPF load performance by selectively loading kmod BTFs
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1150896