Re: [PATCH bpf-next v5] selftests/bpf: trace_helpers.c: optimize kallsyms cache
From: Jiri Olsa
Date: Fri Aug 18 2023 - 08:21:39 EST
On Fri, Aug 18, 2023 at 09:39:32AM +0800, Rong Tao wrote:
> Hi, Jiri. Thanks for your reply.
>
> libbpf_ensure_mem() is in libbpf_internal.h, samples/bpf/ can't see it, do we
> reposition the function declaration?
I see, I had no idea trace_helpers.[ch] is included in samples/bpf
but it seems to have libbpf linked statically.. so you could just
include libbpf_internal.h and it should work, right? like we do
in selftests
jirka
>
> Good Day
> Rong Tao
>