Lines Matching refs:elf
173 Elf *elf; in elf_section_offset() local
178 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_section_offset()
179 if (elf == NULL) in elf_section_offset()
183 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_section_offset()
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_offset()
192 elf_end(elf); in elf_section_offset()
199 Elf *elf; in elf_is_exec() local
203 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_is_exec()
204 if (elf == NULL) in elf_is_exec()
206 if (gelf_getehdr(elf, &ehdr) == NULL) in elf_is_exec()
212 elf_end(elf); in elf_is_exec()