On Wed, Jun 17, 2020 at 1:45 PM Andrey Ignatov <rdna@xxxxxx> wrote: > > btf_parse_vmlinux() implements manual search for struct bpf_ctx_convert > since at the time of implementing btf_find_by_name_kind() was not > available. > > Later btf_find_by_name_kind() was introduced in 27ae7997a661 ("bpf: > Introduce BPF_PROG_TYPE_STRUCT_OPS"). It provides similar search > functionality and can be leveraged in btf_parse_vmlinux(). Do it. > > Signed-off-by: Andrey Ignatov <rdna@xxxxxx> > --- Acked-by: Andrii Nakryiko <andriin@xxxxxx> > kernel/bpf/btf.c | 23 ++++++----------------- > 1 file changed, 6 insertions(+), 17 deletions(-) > [...]