Lines Matching defs:elf
20 #include <elf.h>
276 * inspect elf and find out what is actual module name.
282 Elf *elf;
294 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
295 if (elf == NULL)
298 if (gelf_getehdr(elf, &ehdr) == NULL)
301 sec = elf_section_by_name(elf, &ehdr, &shdr,
312 * '.gnu.linkonce.this_module' section of kernel module elf directly
327 elf_end(elf);
606 Elf *elf;
618 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
619 if (elf == NULL) {
624 if (gelf_getehdr(elf, &ehdr) == NULL)
627 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL))
633 elf_end(elf);