Re: [PATCH bpf-next v1 5/8] resolve_btfids: Fix the _impl lookup for module BTF
Eduard Zingerman <[email protected]> Tue, 28 Jul 2026 17:55:49 -0700
| Newsgroups | org.kernel.vger.linux-input,org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2026-07-22 at 16:35 -0700, Ihor Solodrai wrote: > process_kfunc_with_implicit_args() skips generating <name>_impl > function when one already exists for backwards compatibility. > > It uses btf__find_by_name_kind(), which searches the base BTF before > the split BTF. When resolve_btfids processes a module, a same-named > _impl in vmlinux would be found and the module's own counterpart would > not be created. > > Fix by using btf__find_by_name_kind_own() for the lookup. > > Signed-off-by: Ihor Solodrai <[email protected]> > --- Reviewed-by: Eduard Zingerman <[email protected]> ...