[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4Bzb7=WG24jqh_Gt_L1gd7jgoDzOOvb9rOzt4CB1e=dkToA@mail.gmail.com>
Date: Thu, 18 Mar 2021 20:14:00 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Martin KaFai Lau <kafai@...com>
Cc: bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Kernel Team <kernel-team@...com>,
Networking <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next 09/15] libbpf: Refactor codes for finding btf id
of a kernel symbol
On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau <kafai@...com> wrote:
>
> This patch refactors code, that finds kernel btf_id by kind
> and symbol name, to a new function find_ksym_btf_id().
>
> It also adds a new helper __btf_kind_str() to return
> a string by the numeric kind value.
>
> Signed-off-by: Martin KaFai Lau <kafai@...com>
> ---
> tools/lib/bpf/libbpf.c | 44 +++++++++++++++++++++++++++++++-----------
> 1 file changed, 33 insertions(+), 11 deletions(-)
>
LGTM.
Acked-by: Andrii Nakryiko <andrii@...nel.org>
Powered by blists - more mailing lists