Lines Matching defs:elf
20 #include <elf.h>
266 * inspect elf and find out what is actual module name.
272 Elf *elf;
284 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
285 if (elf == NULL)
288 if (gelf_getehdr(elf, &ehdr) == NULL)
291 sec = elf_section_by_name(elf, &ehdr, &shdr,
302 * '.gnu.linkonce.this_module' section of kernel module elf directly
317 elf_end(elf);
596 Elf *elf;
608 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
609 if (elf == NULL) {
614 if (gelf_getehdr(elf, &ehdr) == NULL)
617 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL))
623 elf_end(elf);