Lines Matching refs:elf
172 Elf *elf; in elf_section_offset() local
177 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_section_offset()
178 if (elf == NULL) in elf_section_offset()
182 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_section_offset()
185 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_offset()
191 elf_end(elf); in elf_section_offset()
198 Elf *elf; in elf_is_exec() local
202 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_is_exec()
203 if (elf == NULL) in elf_is_exec()
205 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_is_exec()
211 elf_end(elf); in elf_is_exec()