• Home
  • Raw
  • Download

Lines Matching refs:cprm

78 static int elf_fdpic_core_dump(struct coredump_params *cprm);
1278 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1285 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1286 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1287 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1493 static bool elf_fdpic_dump_segments(struct coredump_params *cprm) in elf_fdpic_dump_segments() argument
1502 if (!maydump(vma, cprm->mm_flags)) in elf_fdpic_dump_segments()
1512 res = dump_emit(cprm, kaddr, PAGE_SIZE); in elf_fdpic_dump_segments()
1516 res = dump_skip(cprm, PAGE_SIZE); in elf_fdpic_dump_segments()
1522 if (!dump_emit(cprm, (void *) vma->vm_start, in elf_fdpic_dump_segments()
1548 static int elf_fdpic_core_dump(struct coredump_params *cprm) in elf_fdpic_core_dump() argument
1627 sz = elf_dump_thread_status(cprm->siginfo->si_signo, tmp); in elf_fdpic_core_dump()
1632 fill_prstatus(prstatus, current, cprm->siginfo->si_signo); in elf_fdpic_core_dump()
1633 elf_core_copy_regs(&prstatus->pr_reg, cprm->regs); in elf_fdpic_core_dump()
1672 elf_core_copy_task_fpregs(current, cprm->regs, fpu))) in elf_fdpic_core_dump()
1707 offset += elf_core_vma_data_size(cprm->mm_flags); in elf_fdpic_core_dump()
1720 if (!dump_emit(cprm, elf, sizeof(*elf))) in elf_fdpic_core_dump()
1723 if (!dump_emit(cprm, phdr4note, sizeof(*phdr4note))) in elf_fdpic_core_dump()
1737 phdr.p_filesz = maydump(vma, cprm->mm_flags) ? sz : 0; in elf_fdpic_core_dump()
1747 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_fdpic_core_dump()
1751 if (!elf_core_write_extra_phdrs(cprm, offset)) in elf_fdpic_core_dump()
1756 if (!writenote(notes + i, cprm)) in elf_fdpic_core_dump()
1765 if (!writenote(&tmp->notes[i], cprm)) in elf_fdpic_core_dump()
1769 if (!dump_skip(cprm, dataoff - cprm->pos)) in elf_fdpic_core_dump()
1772 if (!elf_fdpic_dump_segments(cprm)) in elf_fdpic_core_dump()
1775 if (!elf_core_write_extra_data(cprm)) in elf_fdpic_core_dump()
1779 if (!dump_emit(cprm, shdr4extnum, sizeof(*shdr4extnum))) in elf_fdpic_core_dump()
1783 if (cprm->file->f_pos != offset) { in elf_fdpic_core_dump()
1787 cprm->file->f_pos, offset); in elf_fdpic_core_dump()