Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 8 of 8) sorted by relevance

/tools/perf/util/
Dgenelf.c162 Elf_Scn *scn; in jit_add_eh_frame_info() local
169 scn = elf_newscn(e); in jit_add_eh_frame_info()
170 if (!scn) { in jit_add_eh_frame_info()
175 d = elf_newdata(scn); in jit_add_eh_frame_info()
188 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
203 scn = elf_newscn(e); in jit_add_eh_frame_info()
204 if (!scn) { in jit_add_eh_frame_info()
209 d = elf_newdata(scn); in jit_add_eh_frame_info()
222 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
252 Elf_Scn *scn; in jit_write_elf() local
[all …]
Dgenelf_debug.c487 Elf_Scn *scn; in jit_add_debug_info() local
502 scn = elf_newscn(e); in jit_add_debug_info()
503 if (!scn) { in jit_add_debug_info()
508 d = elf_newdata(scn); in jit_add_debug_info()
521 shdr = elf_getshdr(scn); in jit_add_debug_info()
536 scn = elf_newscn(e); in jit_add_debug_info()
537 if (!scn) { in jit_add_debug_info()
542 d = elf_newdata(scn); in jit_add_debug_info()
555 shdr = elf_getshdr(scn); in jit_add_debug_info()
570 scn = elf_newscn(e); in jit_add_debug_info()
[all …]
Dprobe-finder.c1670 Elf_Scn *scn; in debuginfo__get_text_offset() local
1688 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
1689 if (!scn) in debuginfo__get_text_offset()
1691 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
Dsymbol-elf.c2313 Elf_Scn *scn = NULL; in construct_sdt_notes_list() local
2331 scn = elf_section_by_name(elf, &ehdr, &shdr, SDT_NOTE_SCN, NULL); in construct_sdt_notes_list()
2332 if (!scn) { in construct_sdt_notes_list()
2342 data = elf_getdata(scn, NULL); in construct_sdt_notes_list()
/tools/objtool/
Dorc_dump.c73 Elf_Scn *scn; in orc_dump() local
107 scn = elf_getscn(elf, i); in orc_dump()
108 if (!scn) { in orc_dump()
113 if (!gelf_getshdr(scn, &sh)) { in orc_dump()
124 data = elf_getdata(scn, NULL); in orc_dump()
167 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
168 if (!scn) { in orc_dump()
173 if (!gelf_getshdr(scn, &sh)) { in orc_dump()
/tools/bpf/resolve_btfids/
Dmain.c276 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) in compressed_section_fix() argument
291 if (gelf_update_shdr(scn, sh) == 0) { in compressed_section_fix()
301 Elf_Scn *scn = NULL; in elf_collect() local
337 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_collect()
343 if (gelf_getshdr(scn, &sh) != &sh) { in elf_collect()
354 data = elf_getdata(scn, 0); in elf_collect()
376 if (compressed_section_fix(elf, scn, &sh)) in elf_collect()
385 Elf_Scn *scn = NULL; in symbols_collect() local
390 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect()
391 if (!scn) in symbols_collect()
[all …]
/tools/lib/bpf/
Dlibbpf.c482 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr);
483 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn);
484 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn);
1250 Elf_Scn *scn = elf_sec_by_name(obj, name); in bpf_object__section_size() local
1251 Elf_Data *data = elf_sec_data(obj, scn); in bpf_object__section_size()
1752 Elf_Scn *scn; in bpf_object__init_user_maps() local
1761 scn = elf_sec_by_idx(obj, obj->efile.maps_shndx); in bpf_object__init_user_maps()
1762 data = elf_sec_data(obj, scn); in bpf_object__init_user_maps()
1763 if (!scn || !data) { in bpf_object__init_user_maps()
2290 Elf_Scn *scn; in bpf_object__init_user_btf_maps() local
[all …]
Dbtf.c808 Elf_Scn *scn = NULL; in btf__parse_elf() local
840 while ((scn = elf_nextscn(elf, scn)) != NULL) { in btf__parse_elf()
845 if (gelf_getshdr(scn, &sh) != &sh) { in btf__parse_elf()
857 btf_data = elf_getdata(scn, 0); in btf__parse_elf()
865 btf_ext_data = elf_getdata(scn, 0); in btf__parse_elf()