Lines Matching refs:nr_extern
644 int nr_extern; member
1750 for (i = 0; i < obj->nr_extern; i++) { in find_extern_by_name()
2042 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__init_kconfig_map()
2814 obj->nr_extern > 0; in libbpf_needs_btf()
3056 for (i = 0; i < obj->nr_extern; i++) { in obj_needs_vmlinux_btf()
3809 ext = libbpf_reallocarray(ext, obj->nr_extern + 1, sizeof(*ext)); in bpf_object__collect_externs()
3813 ext = &ext[obj->nr_extern]; in bpf_object__collect_externs()
3815 obj->nr_extern++; in bpf_object__collect_externs()
3881 pr_debug("collected %d externs total\n", obj->nr_extern); in bpf_object__collect_externs()
3883 if (!obj->nr_extern) in bpf_object__collect_externs()
3887 qsort(obj->externs, obj->nr_extern, sizeof(*ext), cmp_externs); in bpf_object__collect_externs()
3906 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__collect_externs()
3960 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__collect_externs()
4068 int i, n = obj->nr_extern; in bpf_program__record_reloc()
7193 if (ext_idx < 0 || ext_idx >= obj->nr_extern) in fixup_log_missing_kfunc_call()
7752 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__resolve_ksyms_btf_id()
7783 if (obj->nr_extern == 0) in bpf_object__resolve_externs()
7789 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__resolve_externs()
7846 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__resolve_externs()
7869 for (i = 0; i < obj->nr_extern; i++) { in bpf_object__resolve_externs()
8452 for (i = 0; i < obj->nr_extern; i++) in bpf_object__close()
8456 obj->nr_extern = 0; in bpf_object__close()