Re: "resolve_btfids: unresolved" warnings while building v5.16-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 15, 2021 at 07:47:35PM IST, Kumar Kartikeya Dwivedi wrote:
> On Mon, Nov 15, 2021 at 07:04:51PM IST, Pavel Skripkin wrote:
> > Hi, net/bpf developers!
> >
> > While building newest kernel for fuzzing I met following warnings:
> >
> > ```
> >   BTFIDS  vmlinux
> > WARN: resolve_btfids: unresolved symbol tcp_dctcp_kfunc_ids
> > WARN: resolve_btfids: unresolved symbol tcp_cubic_kfunc_ids
> > WARN: resolve_btfids: unresolved symbol tcp_bbr_kfunc_ids
> >   SORTTAB vmlinux
> >
> > ```

+Cc Andrii

So the reason should be CONFIG_DYNAMIC_FTRACE=n, when that is turned off,
all these three BTF sets should be empty. Earlier they were all part of the
set in bpf_tcp_ca.c, which would never be empty, so there was no warning.

I guess we can demote that warning to debug, but not sure, since it isn't
limited to BTF sets, but also other symbols (e.g. kernel functions referenced in
.BTF_ids).

The other option is to add a dummy function in the set so that set->cnt != 0.

> >
> > I haven't seen such warnings before and have no idea are they important or
> > not. Config is attached.
> >
> > My host is openSUSE Tumbleweed with gcc (SUSE Linux) 10.3.1 20210707
> > [revision 048117e16c77f82598fca9af585500572d46ad73] if it's important :)
> >
> >
>
> I'll take a look later today.
>
> >
> > With regards,
> > Pavel Skripkin
>
> --
> Kartikeya

--
Kartikeya



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux