Home
last modified time | relevance | path

Searched refs:efile (Results 1 – 2 of 2) sorted by relevance

/linux/tools/bpf/resolve_btfids/
H A Dmain.c157 } efile; member
467 obj->efile.fd = fd; in elf_collect()
468 obj->efile.elf = elf; in elf_collect()
477 if (gelf_getehdr(obj->efile.elf, &ehdr) == NULL) { in elf_collect()
482 obj->efile.encoding = ehdr.e_ident[EI_DATA]; in elf_collect()
518 obj->efile.symbols = data; in elf_collect()
519 obj->efile.symbols_shndx = idx; in elf_collect()
520 obj->efile.strtabidx = sh.sh_link; in elf_collect()
528 if (obj->efile.encoding != ELFDATANATIVE) { in elf_collect()
532 obj->efile.idlist = data; in elf_collect()
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf.c732 struct elf_state efile; member
911 Elf_Data *symbols = obj->efile.symbols; in bpf_object__add_programs()
947 if (sec_idx != obj->efile.text_shndx && ELF64_ST_BIND(sym->st_info) == STB_LOCAL) { in bpf_object__add_programs()
1504 for (sec_idx = 0; sec_idx < obj->efile.sec_cnt; ++sec_idx) { in bpf_object_init_struct_ops()
1505 struct elf_sec_desc *desc = &obj->efile.secs[sec_idx]; in bpf_object_init_struct_ops()
1547 obj->efile.fd = -1; in bpf_object__new()
1554 obj->efile.obj_buf = obj_buf; in bpf_object__new()
1555 obj->efile.obj_buf_sz = obj_buf_sz; in bpf_object__new()
1556 obj->efile.btf_maps_shndx = -1; in bpf_object__new()
1568 if (!obj->efile.elf) in bpf_object__elf_finish()
[all …]