Home
last modified time | relevance | path

Searched refs:cprm (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/fs/
Dcoredump.c56 static bool dump_vma_snapshot(struct coredump_params *cprm);
57 static void free_vma_snapshot(struct coredump_params *cprm);
200 static int format_corename(struct core_name *cn, struct coredump_params *cprm, in format_corename() argument
292 __get_dumpable(cprm->mm_flags)); in format_corename()
297 cprm->siginfo->si_signo); in format_corename()
598 struct coredump_params cprm = { in do_coredump() local
616 if (!__get_dumpable(cprm.mm_flags)) in do_coredump()
628 if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) { in do_coredump()
640 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
654 if (cprm.limit == 1) { in do_coredump()
[all …]
Dbinfmt_elf.c81 static int elf_core_dump(struct coredump_params *cprm);
1477 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1484 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1485 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1486 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1641 static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm) in fill_files_note() argument
1650 count = cprm->vma_count; in fill_files_note()
1672 for (i = 0; i < cprm->vma_count; i++) { in fill_files_note()
1673 struct core_vma_metadata *m = &cprm->vma_meta[i]; in fill_files_note()
1710 n = cprm->vma_count - count; in fill_files_note()
[all …]
Dbinfmt_elf_fdpic.c78 static int elf_fdpic_core_dump(struct coredump_params *cprm);
1241 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1248 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1249 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1250 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1458 static bool elf_fdpic_dump_segments(struct coredump_params *cprm, in elf_fdpic_dump_segments() argument
1467 if (!dump_user_range(cprm, meta->start, meta->dump_size)) in elf_fdpic_dump_segments()
1480 static int elf_fdpic_core_dump(struct coredump_params *cprm) in elf_fdpic_core_dump() argument
1509 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
1519 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
[all …]
Dbinfmt_flat.c94 static int flat_core_dump(struct coredump_params *cprm);
109 static int flat_core_dump(struct coredump_params *cprm) in flat_core_dump() argument
112 current->comm, current->pid, cprm->siginfo->si_signo); in flat_core_dump()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
Dcoredump.c116 struct coredump_params *cprm, int dfd) in spufs_arch_write_note() argument
128 if (!dump_emit(cprm, &en, sizeof(en))) in spufs_arch_write_note()
130 if (!dump_emit(cprm, fullname, en.n_namesz)) in spufs_arch_write_note()
132 if (!dump_align(cprm, 4)) in spufs_arch_write_note()
136 ret = spufs_coredump_read[i].dump(ctx, cprm); in spufs_arch_write_note()
148 if (!dump_emit(cprm, buf, ret + 1)) in spufs_arch_write_note()
152 if (!dump_skip(cprm, roundup(cprm->pos - ret + sz, 4) - cprm->pos)) in spufs_arch_write_note()
157 int spufs_coredump_extra_notes_write(struct coredump_params *cprm) in spufs_coredump_extra_notes_write() argument
169 rc = spufs_arch_write_note(ctx, j, cprm, fd); in spufs_coredump_extra_notes_write()
Dfile.c133 static ssize_t spufs_dump_emit(struct coredump_params *cprm, void *buf, in spufs_dump_emit() argument
136 if (!dump_emit(cprm, buf, size)) in spufs_dump_emit()
184 spufs_mem_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_mem_dump() argument
186 return spufs_dump_emit(cprm, ctx->ops->get_ls(ctx), LS_SIZE); in spufs_mem_dump()
469 spufs_regs_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_regs_dump() argument
471 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump()
526 spufs_fpcr_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_fpcr_dump() argument
528 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump()
962 struct coredump_params *cprm) in spufs_signal1_dump() argument
966 return spufs_dump_emit(cprm, &ctx->csa.spu_chnldata_RW[3], in spufs_signal1_dump()
[all …]
Dspufs.h239 extern int spufs_coredump_extra_notes_write(struct coredump_params *cprm);
340 ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
/kernel/linux/linux-5.10/include/linux/
Dcoredump.h23 extern int dump_skip(struct coredump_params *cprm, size_t nr);
24 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
25 extern int dump_align(struct coredump_params *cprm, int align);
26 extern void dump_truncate(struct coredump_params *cprm);
27 int dump_user_range(struct coredump_params *cprm, unsigned long start,
Delfcore.h118 elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);
120 elf_core_write_extra_data(struct coredump_params *cprm);
128 static inline int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
133 static inline int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
Delf.h60 static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; } in elf_coredump_extra_notes_write() argument
63 extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);
Dbinfmts.h99 int (*core_dump)(struct coredump_params *cprm);
/kernel/linux/linux-5.10/arch/x86/um/
Delfcore.c15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
35 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs()
42 int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
55 if (!dump_emit(cprm, addr, filesz)) in elf_core_write_extra_data()
/kernel/linux/linux-5.10/arch/ia64/kernel/
Delfcore.c15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
38 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs()
44 int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
55 if (!dump_emit(cprm, addr, memsz)) in elf_core_write_extra_data()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Dspu_syscalls.c118 int elf_coredump_extra_notes_write(struct coredump_params *cprm) in elf_coredump_extra_notes_write() argument
127 ret = calls->coredump_extra_notes_write(cprm); in elf_coredump_extra_notes_write()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dbvme6000hw.h35 pad_u[3], cprm, member
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dspu.h235 int (*coredump_extra_notes_write)(struct coredump_params *cprm);