Lines Matching refs:cprm
65 static int elf_core_dump(struct coredump_params *cprm);
1404 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1411 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1412 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1413 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1863 struct coredump_params *cprm) in write_note_info() argument
1871 if (!writenote(&t->notes[0], cprm)) in write_note_info()
1874 if (first && !writenote(&info->psinfo, cprm)) in write_note_info()
1876 if (first && !writenote(&info->signote, cprm)) in write_note_info()
1878 if (first && !writenote(&info->auxv, cprm)) in write_note_info()
1881 !writenote(&info->files, cprm)) in write_note_info()
1886 !writenote(&t->notes[i], cprm)) in write_note_info()
2093 struct coredump_params *cprm) in write_note_info() argument
2099 if (!writenote(info->notes + i, cprm)) in write_note_info()
2108 if (!writenote(&tmp->notes[i], cprm)) in write_note_info()
2187 static int elf_core_dump(struct coredump_params *cprm) in elf_core_dump() argument
2242 if (!fill_note_info(elf, e_phnum, &info, cprm->siginfo, cprm->regs)) in elf_core_dump()
2277 dump_size = vma_dump_size(vma, cprm->mm_flags); in elf_core_dump()
2295 if (!dump_emit(cprm, elf, sizeof(*elf))) in elf_core_dump()
2298 if (!dump_emit(cprm, phdr4note, sizeof(*phdr4note))) in elf_core_dump()
2320 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_dump()
2324 if (!elf_core_write_extra_phdrs(cprm, offset)) in elf_core_dump()
2328 if (!write_note_info(&info, cprm)) in elf_core_dump()
2331 if (elf_coredump_extra_notes_write(cprm)) in elf_core_dump()
2335 if (!dump_skip(cprm, dataoff - cprm->written)) in elf_core_dump()
2352 stop = !dump_emit(cprm, kaddr, PAGE_SIZE); in elf_core_dump()
2356 stop = !dump_skip(cprm, PAGE_SIZE); in elf_core_dump()
2361 dump_truncate(cprm); in elf_core_dump()
2363 if (!elf_core_write_extra_data(cprm)) in elf_core_dump()
2367 if (!dump_emit(cprm, shdr4extnum, sizeof(*shdr4extnum))) in elf_core_dump()