| /tools/perf/util/ |
| A D | genelf.c | 80 Elf_Scn *scn; in jit_add_eh_frame_info() local 87 scn = elf_newscn(e); in jit_add_eh_frame_info() 88 if (!scn) { in jit_add_eh_frame_info() 121 scn = elf_newscn(e); in jit_add_eh_frame_info() 122 if (!scn) { in jit_add_eh_frame_info() 170 Elf_Scn *scn; in jit_write_elf() local 224 if (!scn) { in jit_write_elf() 271 if (!scn) { in jit_write_elf() 307 if (!scn) { in jit_write_elf() 350 if (!scn) { in jit_write_elf() [all …]
|
| A D | genelf_debug.c | 498 Elf_Scn *scn; in jit_add_debug_info() local 513 scn = elf_newscn(e); in jit_add_debug_info() 514 if (!scn) { in jit_add_debug_info() 519 d = elf_newdata(scn); in jit_add_debug_info() 532 shdr = elf_getshdr(scn); in jit_add_debug_info() 547 scn = elf_newscn(e); in jit_add_debug_info() 548 if (!scn) { in jit_add_debug_info() 553 d = elf_newdata(scn); in jit_add_debug_info() 581 scn = elf_newscn(e); in jit_add_debug_info() 582 if (!scn) { in jit_add_debug_info() [all …]
|
| A D | debuginfo.c | 151 Elf_Scn *scn; in debuginfo__get_text_offset() local 169 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset() 170 if (!scn) in debuginfo__get_text_offset() 172 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
|
| A D | symbol-elf.c | 497 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info() 500 di->dynsym_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 583 Elf_Scn *scn; in dso__synthesize_plt_got_symbols() local 588 if (!scn || !shdr.sh_entsize) in dso__synthesize_plt_got_symbols() 592 get_rela_dyn_info(elf, ehdr, &di, scn); in dso__synthesize_plt_got_symbols() 1145 Elf_Scn *scn; in read_gnu_debugdata() local 1159 if (!scn) { in read_gnu_debugdata() 1170 scn_data = elf_rawdata(scn, NULL); in read_gnu_debugdata() 2879 Elf_Scn *scn = NULL; in construct_sdt_notes_list() local 2898 if (!scn) { in construct_sdt_notes_list() [all …]
|
| /tools/objtool/ |
| A D | orc_dump.c | 22 Elf_Scn *scn; in orc_dump() local 60 scn = elf_getscn(elf, i); in orc_dump() 61 if (!scn) { in orc_dump() 66 if (!gelf_getshdr(scn, &sh)) { in orc_dump() 77 data = elf_getdata(scn, NULL); in orc_dump() 120 scn = elf_getscn(elf, sym.st_shndx); in orc_dump() 121 if (!scn) { in orc_dump() 126 if (!gelf_getshdr(scn, &sh)) { in orc_dump()
|
| /tools/lib/bpf/ |
| A D | elf.c | 65 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_find_next_scn_by_type() 68 if (!gelf_getshdr(scn, &sh)) in elf_find_next_scn_by_type() 71 return scn; in elf_find_next_scn_by_type() 101 Elf_Scn *scn = NULL; in elf_sym_iter_new() local 113 if (!scn) { in elf_sym_iter_new() 119 if (!gelf_getshdr(scn, &sh)) in elf_sym_iter_new() 123 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new() 138 if (!scn) in elf_sym_iter_new() 140 iter->versyms = elf_getdata(scn, 0); in elf_sym_iter_new() 143 if (!scn) in elf_sym_iter_new() [all …]
|
| A D | linker.c | 47 Elf_Scn *scn; member 116 Elf_Scn *scn; member 669 Elf_Scn *scn; in linker_load_obj_file() local 730 scn = NULL; in linker_load_obj_file() 731 while ((scn = elf_nextscn(obj->elf, scn)) != NULL) { in linker_load_obj_file() 760 sec->scn = scn; in linker_load_obj_file() 1143 Elf_Scn *scn; in init_sec() local 1157 if (!scn) in init_sec() 1166 dst_sec->scn = scn; in init_sec() 2821 Elf_Scn *scn; in emit_elf_data_sec() local [all …]
|
| A D | libbpf.c | 3661 if (!scn) { in elf_sec_by_idx() 3666 return scn; in elf_sec_by_idx() 3675 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_sec_by_name() 3692 if (!scn) in elf_sec_hdr() 3710 if (!scn) in elf_sec_name() 3731 if (!scn) in elf_sec_data() 3737 elf_ndxscn(scn), elf_sec_name(obj, scn) ?: "<?>", in elf_sec_data() 3842 scn = NULL; in bpf_object__elf_collect() 3843 while ((scn = elf_nextscn(elf, scn)) != NULL) { in bpf_object__elf_collect() 3872 scn = NULL; in bpf_object__elf_collect() [all …]
|
| A D | usdt.c | 358 static int find_elf_sec_by_name(Elf *elf, const char *sec_name, GElf_Shdr *shdr, Elf_Scn **scn) in find_elf_sec_by_name() argument 378 *scn = sec; in find_elf_sec_by_name()
|
| A D | btf.c | 1123 Elf_Scn *scn = NULL; in btf_find_elf_sections() local 1145 while ((scn = elf_nextscn(elf, scn)) != NULL) { in btf_find_elf_sections() 1151 if (gelf_getshdr(scn, &sh) != &sh) { in btf_find_elf_sections() 1178 data = elf_getdata(scn, 0); in btf_find_elf_sections()
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 306 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) in compressed_section_fix() argument 321 if (gelf_update_shdr(scn, sh) == 0) { in compressed_section_fix() 331 Elf_Scn *scn = NULL; in elf_collect() local 376 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_collect() 382 if (gelf_getshdr(scn, &sh) != &sh) { in elf_collect() 393 data = elf_getdata(scn, 0); in elf_collect() 423 if (compressed_section_fix(elf, scn, &sh)) in elf_collect() 432 Elf_Scn *scn = NULL; in symbols_collect() local 437 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect() 438 if (!scn) in symbols_collect() [all …]
|