On Mon, Jul 27, 2020 at 3:02 AM Toshiaki Makita
<[email protected]> wrote:
>
> Hi William,
>
> On 2020/07/16 23:05, Toshiaki Makita wrote:
> > Hi William,
> >
> > Thank you for taking a look!
> >
> > On 2020/07/16 0:49, William Tu wrote:
> >> Hi Toshiaki,
> >>
> >> Thanks for the interesting patch series!
> >> I haven't finished reviewing, but I went through a couple of
> >> steps to make sure it works in my environment.
> >> Comments below:
> >>
> >> On Tue, Jun 30, 2020 at 12:30:29AM +0900, Toshiaki Makita wrote:
> > ...
> >>> * How to use
> >>>
> >>> 1. Install clang/llvm >= 9, libbpf >= 0.0.6 (included in kernel 5.5), and
> >>>     kernel >= 5.3.
> >> Encounter an error:
> >> lib/netdev-offload-xdp.c: In function ‘probe_meta_info’:
> >> lib/netdev-offload-xdp.c:386:19: error: implicit declaration of function 
> >> ‘btf__find_by_name_kind’
> >> [-Werror=implicit-function-declaration]
> >>       meta_sec_id = btf__find_by_name_kind(btf, ".ovs_meta", 
> >> BTF_KIND_DATASEC);
> >>
> >> $~/bpf-next/tools/lib/bpf# nm libbpf.so.0.0.7  | grep "btf__.*kind" | grep 
> >> T
> >> 000000000001d4b3 T btf__find_by_name_kind
> >> $~/bpf-next/tools/lib/bpf# nm libbpf.so.0.0.6  | grep "btf__.*kind" | grep 
> >> T
> >>
> >> Actually we need libbpf 0.0.7
> >
> > Hmm...? It should be 0.0.6...
> >
> > https://github.com/libbpf/libbpf/blob/v0.0.6/src/libbpf.map#L208
> >
> > LIBBPF_0.0.6 {
> >      global:
> >          [...]
> >          btf__find_by_name_kind;
> >
> > I'll double check if my 0.0.6 binary has this function.
>
> Confirmed.
>
> ```
> $ rpm -q libbpf
> libbpf-0.0.6-1.fc31.x86_64
>
> $ nm -D /lib64/libbpf.so.0.0.6 | grep "btf__.*kind" | grep T
> 00000000000091f0 T btf__find_by_name_kind
> ```
>
> William, would you check your configuration again?
> libbpf 0.0.6 should include btf__find_by_name_kind.

Hi Toshiaki,
Yes, I double-check and libbpf 0.0.6 has the symbol btf__find_by_name_kind().
I was using the libbpf under the kernel source, I should probably switch to use
the one on the github libbpf repo.
William
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to