Home
last modified time | relevance | path

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

/tools/perf/util/
Dgenelf.c163 Elf_Shdr *shdr; in jit_add_eh_frame_info() local
188 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
189 if (!shdr) { in jit_add_eh_frame_info()
194 shdr->sh_name = 104; in jit_add_eh_frame_info()
195 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
196 shdr->sh_addr = base_offset; in jit_add_eh_frame_info()
197 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
198 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
222 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
223 if (!shdr) { in jit_add_eh_frame_info()
[all …]
Dgenelf_debug.c488 Elf_Shdr *shdr; in jit_add_debug_info() local
521 shdr = elf_getshdr(scn); in jit_add_debug_info()
522 if (!shdr) { in jit_add_debug_info()
527 shdr->sh_name = 52; /* .debug_line */ in jit_add_debug_info()
528 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
529 shdr->sh_addr = 0; /* must be zero or == sh_offset -> dynamic object */ in jit_add_debug_info()
530 shdr->sh_flags = 0; in jit_add_debug_info()
531 shdr->sh_entsize = 0; in jit_add_debug_info()
555 shdr = elf_getshdr(scn); in jit_add_debug_info()
556 if (!shdr) { in jit_add_debug_info()
[all …]
Dsymbol-elf.c166 static inline const char *elf_sec__name(const GElf_Shdr *shdr, in elf_sec__name() argument
169 return secstrs->d_buf + shdr->sh_name; in elf_sec__name()
172 static inline int elf_sec__is_text(const GElf_Shdr *shdr, in elf_sec__is_text() argument
175 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL; in elf_sec__is_text()
178 static inline bool elf_sec__is_data(const GElf_Shdr *shdr, in elf_sec__is_data() argument
181 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL; in elf_sec__is_data()
184 static bool elf_sec__filter(GElf_Shdr *shdr, Elf_Data *secstrs) in elf_sec__filter() argument
186 return elf_sec__is_text(shdr, secstrs) || in elf_sec__filter()
187 elf_sec__is_data(shdr, secstrs); in elf_sec__filter()
193 GElf_Shdr shdr; in elf_addr_to_index() local
[all …]
Dunwind-libunwind-local.c175 GElf_Shdr shdr; in elf_section_offset() local
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_offset()
189 offset = shdr.sh_offset; in elf_section_offset()
Dprobe-finder.c1247 GElf_Shdr shdr; in debuginfo__find_probes() local
1249 if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) && in debuginfo__find_probes()
1250 shdr.sh_type == SHT_PROGBITS) in debuginfo__find_probes()
1672 GElf_Shdr mem, *shdr; in debuginfo__get_text_offset() local
1691 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
1692 if (!shdr) in debuginfo__get_text_offset()
1694 *offs = shdr->sh_addr; in debuginfo__get_text_offset()
1696 *offs -= shdr->sh_offset; in debuginfo__get_text_offset()
Dprobe-event.c274 GElf_Shdr shdr; in find_module_name() local
291 sec = elf_section_by_name(elf, &ehdr, &shdr, in find_module_name()
598 GElf_Shdr shdr; in get_text_start_address() local
617 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL)) in get_text_start_address()
620 *address = shdr.sh_addr - shdr.sh_offset; in get_text_start_address()
/tools/lib/bpf/
Dlibbpf.c443 GElf_Shdr shdr; member
2921 obj->efile.reloc_sects[nr_sects].shdr = sh; in bpf_object__elf_collect()
3505 bpf_object__collect_prog_relos(struct bpf_object *obj, GElf_Shdr *shdr, Elf_Data *data) in bpf_object__collect_prog_relos() argument
3509 size_t sec_idx = shdr->sh_info; in bpf_object__collect_prog_relos()
3518 relo_sec_name = elf_sec_str(obj, shdr->sh_name); in bpf_object__collect_prog_relos()
3525 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos()
6485 GElf_Shdr *shdr, Elf_Data *data);
6488 GElf_Shdr *shdr, Elf_Data *data) in bpf_object__collect_map_relos() argument
6510 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos()
6620 GElf_Shdr *shdr = &obj->efile.reloc_sects[i].shdr; in bpf_object__collect_relos() local
[all …]