Lines Matching refs:elf
174 Elf *elf; in elf_section_address_and_offset() local
179 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_section_address_and_offset()
180 if (elf == NULL) in elf_section_address_and_offset()
183 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_section_address_and_offset()
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_address_and_offset()
193 elf_end(elf); in elf_section_address_and_offset()
211 Elf *elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_base_address() local
216 if (elf == NULL) in elf_base_address()
218 (void)elf_getphdrnum(elf, &phdrnum); in elf_base_address()
221 if (gelf_getphdr(elf, i, &phdr) && phdr.p_type == PT_LOAD) { in elf_base_address()
227 elf_end(elf); in elf_base_address()
234 Elf *elf; in elf_is_exec() local
238 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_is_exec()
239 if (elf == NULL) in elf_is_exec()
241 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_is_exec()
247 elf_end(elf); in elf_is_exec()