On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau <kafai@xxxxxx> 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@xxxxxx> > --- > tools/lib/bpf/libbpf.c | 44 +++++++++++++++++++++++++++++++----------- > 1 file changed, 33 insertions(+), 11 deletions(-) > LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>