[PATCH openEuler-22.09 026/379] libbpf: bpf__find_by_name[_kind] should use btf__get_nr_types()