[PATCH openEuler-22.09 v2 130/391] libbpf: Generalize BTF and BTF.ext type ID and strings iteration