Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 7 of 7) sorted by relevance

/tools/perf/util/
Dgenelf.c164 Elf_Shdr *shdr; in jit_add_eh_frame_info() local
189 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
190 if (!shdr) { in jit_add_eh_frame_info()
195 shdr->sh_name = 104; in jit_add_eh_frame_info()
196 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
197 shdr->sh_addr = base_offset; in jit_add_eh_frame_info()
198 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
199 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
223 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
224 if (!shdr) { in jit_add_eh_frame_info()
[all …]
Dgenelf_debug.c490 Elf_Shdr *shdr; in jit_add_debug_info() local
523 shdr = elf_getshdr(scn); in jit_add_debug_info()
524 if (!shdr) { in jit_add_debug_info()
529 shdr->sh_name = 52; /* .debug_line */ in jit_add_debug_info()
530 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
531 shdr->sh_addr = 0; /* must be zero or == sh_offset -> dynamic object */ in jit_add_debug_info()
532 shdr->sh_flags = 0; in jit_add_debug_info()
533 shdr->sh_entsize = 0; in jit_add_debug_info()
557 shdr = elf_getshdr(scn); in jit_add_debug_info()
558 if (!shdr) { in jit_add_debug_info()
[all …]
Dsymbol-elf.c142 static inline const char *elf_sec__name(const GElf_Shdr *shdr, in elf_sec__name() argument
145 return secstrs->d_buf + shdr->sh_name; in elf_sec__name()
148 static inline int elf_sec__is_text(const GElf_Shdr *shdr, in elf_sec__is_text() argument
151 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL; in elf_sec__is_text()
154 static inline bool elf_sec__is_data(const GElf_Shdr *shdr, in elf_sec__is_data() argument
157 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL; in elf_sec__is_data()
160 static bool elf_sec__is_a(GElf_Shdr *shdr, Elf_Data *secstrs, in elf_sec__is_a() argument
165 return elf_sec__is_text(shdr, secstrs); in elf_sec__is_a()
167 return elf_sec__is_data(shdr, secstrs); in elf_sec__is_a()
176 GElf_Shdr shdr; in elf_addr_to_index() local
[all …]
Dprobe-finder.c1183 GElf_Shdr shdr; in debuginfo__find_probes() local
1185 if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) && in debuginfo__find_probes()
1186 shdr.sh_type == SHT_PROGBITS) in debuginfo__find_probes()
1542 GElf_Shdr mem, *shdr; in debuginfo__get_text_offset() local
1561 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
1562 if (!shdr) in debuginfo__get_text_offset()
1564 *offs = shdr->sh_addr; in debuginfo__get_text_offset()
1566 *offs -= shdr->sh_offset; in debuginfo__get_text_offset()
Dunwind-libunwind-local.c174 GElf_Shdr shdr; in elf_section_offset() local
185 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_offset()
188 offset = shdr.sh_offset; in elf_section_offset()
Dprobe-event.c284 GElf_Shdr shdr; in find_module_name() local
301 sec = elf_section_by_name(elf, &ehdr, &shdr, in find_module_name()
552 GElf_Shdr shdr; in get_text_start_address() local
571 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL)) in get_text_start_address()
574 *address = shdr.sh_addr - shdr.sh_offset; in get_text_start_address()
/tools/lib/bpf/
Dlibbpf.c231 GElf_Shdr shdr; member
783 obj->efile.reloc[n].shdr = sh; in bpf_object__elf_collect()
817 size_t nr_maps, GElf_Shdr *shdr, in bpf_program__collect_reloc() argument
825 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_program__collect_reloc()
981 GElf_Shdr *shdr = &obj->efile.reloc[i].shdr; in bpf_object__collect_reloc() local
983 int idx = shdr->sh_info; in bpf_object__collect_reloc()
987 if (shdr->sh_type != SHT_REL) { in bpf_object__collect_reloc()
1000 shdr, data, in bpf_object__collect_reloc()