Searched refs:shdr (Results 1 – 7 of 7) sorted by relevance
/tools/perf/util/ |
D | genelf.c | 164 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 …]
|
D | genelf_debug.c | 488 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 …]
|
D | symbol-elf.c | 164 static inline const char *elf_sec__name(const GElf_Shdr *shdr, in elf_sec__name() argument 167 return secstrs->d_buf + shdr->sh_name; in elf_sec__name() 170 static inline int elf_sec__is_text(const GElf_Shdr *shdr, in elf_sec__is_text() argument 173 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL; in elf_sec__is_text() 176 static inline bool elf_sec__is_data(const GElf_Shdr *shdr, in elf_sec__is_data() argument 179 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL; in elf_sec__is_data() 182 static bool elf_sec__filter(GElf_Shdr *shdr, Elf_Data *secstrs) in elf_sec__filter() argument 184 return elf_sec__is_text(shdr, secstrs) || in elf_sec__filter() 185 elf_sec__is_data(shdr, secstrs); in elf_sec__filter() 191 GElf_Shdr shdr; in elf_addr_to_index() local [all …]
|
D | unwind-libunwind-local.c | 175 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()
|
D | probe-finder.c | 1167 GElf_Shdr shdr; in debuginfo__find_probes() local 1169 if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) && in debuginfo__find_probes() 1170 shdr.sh_type == SHT_PROGBITS) in debuginfo__find_probes() 1545 GElf_Shdr mem, *shdr; in debuginfo__get_text_offset() local 1564 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset() 1565 if (!shdr) in debuginfo__get_text_offset() 1567 *offs = shdr->sh_addr; in debuginfo__get_text_offset() 1569 *offs -= shdr->sh_offset; in debuginfo__get_text_offset()
|
D | probe-event.c | 262 GElf_Shdr shdr; in find_module_name() local 279 sec = elf_section_by_name(elf, &ehdr, &shdr, in find_module_name() 533 GElf_Shdr shdr; in get_text_start_address() local 552 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL)) in get_text_start_address() 555 *address = shdr.sh_addr - shdr.sh_offset; in get_text_start_address()
|
/tools/lib/bpf/ |
D | libbpf.c | 268 GElf_Shdr shdr; member 1638 obj->efile.reloc[nr_reloc].shdr = sh; in bpf_object__elf_collect() 1726 bpf_program__collect_reloc(struct bpf_program *prog, GElf_Shdr *shdr, in bpf_program__collect_reloc() argument 1735 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_program__collect_reloc() 3338 GElf_Shdr *shdr = &obj->efile.reloc[i].shdr; in bpf_object__collect_reloc() local 3340 int idx = shdr->sh_info; in bpf_object__collect_reloc() 3343 if (shdr->sh_type != SHT_REL) { in bpf_object__collect_reloc() 3354 err = bpf_program__collect_reloc(prog, shdr, data, obj); in bpf_object__collect_reloc()
|