Lines Matching defs:elf
19 #include <elf.h>
174 Elf *elf;
179 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
180 if (elf == NULL)
183 if (gelf_getehdr(elf, &ehdr) == NULL)
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL))
193 elf_end(elf);
211 Elf *elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
216 if (elf == NULL)
218 (void)elf_getphdrnum(elf, &phdrnum);
221 if (gelf_getphdr(elf, i, &phdr) && phdr.p_type == PT_LOAD) {
227 elf_end(elf);
234 Elf *elf;
238 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
239 if (elf == NULL)
241 if (gelf_getehdr(elf, &ehdr) == NULL)
247 elf_end(elf);