Lines Matching refs:d_size
792 size_t sec_sz = sec_data->d_size, sec_off, prog_sz, nr_syms; in bpf_object__add_programs()
799 nr_syms = symbols->d_size / sizeof(Elf64_Sym); in bpf_object__add_programs()
1229 if (vsi->offset + type->size > obj->efile.st_ops_data->d_size) { in bpf_object__init_struct_ops_maps()
1457 *size = data->d_size; in find_elf_sec_sz()
1473 for (si = 0; si < symbols->d_size / sizeof(Elf64_Sym); si++) { in find_elf_var_offset()
1657 if (!sec_desc->data || sec_desc->data->d_size == 0) in bpf_object__init_global_data_maps()
1666 sec_desc->data->d_size); in bpf_object__init_global_data_maps()
1674 sec_desc->data->d_size); in bpf_object__init_global_data_maps()
1681 sec_desc->data->d_size); in bpf_object__init_global_data_maps()
2478 if ((__u64)vi->offset + vi->size > data->d_size) { in bpf_object__init_user_btf_map()
2769 obj->btf = btf__new(btf_data->d_buf, btf_data->d_size); in bpf_object__init_btf()
2788 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf()
3240 if (idx >= obj->efile.symbols->d_size / sizeof(Elf64_Sym)) in elf_sym_by_idx()
3248 if (idx >= data->d_size / sizeof(Elf64_Rel)) in elf_rel_by_idx()
3386 idx, name, (unsigned long)data->d_size, in bpf_object__elf_collect()
3391 err = bpf_object__init_license(obj, data->d_buf, data->d_size); in bpf_object__elf_collect()
3395 err = bpf_object__init_kversion(obj, data->d_buf, data->d_size); in bpf_object__elf_collect()
3413 } else if (sh->sh_type == SHT_PROGBITS && data->d_size > 0) { in bpf_object__elf_collect()
4191 if (rel->r_offset % BPF_INSN_SZ || rel->r_offset >= scn_data->d_size) { in bpf_object__collect_prog_relos()
10576 nr_syms = symbols->d_size / sh.sh_entsize; in elf_find_func_offset()