Lines Matching refs:elf
165 Elf *elf; in elf_section_offset() local
170 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_section_offset()
171 if (elf == NULL) in elf_section_offset()
175 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_section_offset()
178 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_offset()
184 elf_end(elf); in elf_section_offset()
191 Elf *elf; in elf_is_exec() local
195 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_is_exec()
196 if (elf == NULL) in elf_is_exec()
198 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_is_exec()
204 elf_end(elf); in elf_is_exec()