Lines Matching defs:elf
19 #include <elf.h>
173 Elf *elf;
178 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
179 if (elf == NULL)
183 if (gelf_getehdr(elf, &ehdr) == NULL)
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL))
192 elf_end(elf);
199 Elf *elf;
203 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
204 if (elf == NULL)
206 if (gelf_getehdr(elf, &ehdr) == NULL)
212 elf_end(elf);