Home
last modified time | relevance | path

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

/linux-6.12.1/fs/
Dcoredump.c57 static bool dump_vma_snapshot(struct coredump_params *cprm);
58 static void free_vma_snapshot(struct coredump_params *cprm);
207 static int format_corename(struct core_name *cn, struct coredump_params *cprm, in format_corename() argument
299 __get_dumpable(cprm->mm_flags)); in format_corename()
304 cprm->siginfo->si_signo); in format_corename()
339 err = cn_printf(cn, "%d", cprm->cpu); in format_corename()
539 struct coredump_params cprm = { in do_coredump() local
557 if (!__get_dumpable(cprm.mm_flags)) in do_coredump()
569 if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) { in do_coredump()
581 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
[all …]
Dbinfmt_elf.c82 static int elf_core_dump(struct coredump_params *cprm);
1454 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1461 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1462 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1463 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1619 static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm) in fill_files_note() argument
1628 count = cprm->vma_count; in fill_files_note()
1654 for (i = 0; i < cprm->vma_count; i++) { in fill_files_note()
1655 struct core_vma_metadata *m = &cprm->vma_meta[i]; in fill_files_note()
1692 n = cprm->vma_count - count; in fill_files_note()
[all …]
Dbinfmt_elf_fdpic.c78 static int elf_fdpic_core_dump(struct coredump_params *cprm);
1218 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1225 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1226 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1227 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1436 static bool elf_fdpic_dump_segments(struct coredump_params *cprm, in elf_fdpic_dump_segments() argument
1445 if (!dump_user_range(cprm, meta->start, meta->dump_size)) in elf_fdpic_dump_segments()
1458 static int elf_fdpic_core_dump(struct coredump_params *cprm) in elf_fdpic_core_dump() argument
1487 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
1497 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
[all …]
/linux-6.12.1/arch/arm64/kernel/
Delfcore.c11 #define for_each_mte_vma(cprm, i, m) \ argument
13 for (i = 0, m = cprm->vma_meta; \
14 i < cprm->vma_count; \
15 i++, m = cprm->vma_meta + i) \
24 static int mte_dump_tag_range(struct coredump_params *cprm, in mte_dump_tag_range() argument
41 dump_skip(cprm, MTE_PAGE_TAG_STORAGE); in mte_dump_tag_range()
51 dump_skip(cprm, MTE_PAGE_TAG_STORAGE); in mte_dump_tag_range()
66 if (!dump_emit(cprm, tags, MTE_PAGE_TAG_STORAGE)) { in mte_dump_tag_range()
78 Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
84 for_each_mte_vma(cprm, i, m) in elf_core_extra_phdrs()
[all …]
/linux-6.12.1/include/linux/
Delfcore.h108 extern Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm);
110 elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);
112 elf_core_write_extra_data(struct coredump_params *cprm);
113 extern size_t elf_core_extra_data_size(struct coredump_params *cprm);
115 static inline Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
120 static inline int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
125 static inline int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
130 static inline size_t elf_core_extra_data_size(struct coredump_params *cprm) in elf_core_extra_data_size() argument
Dcoredump.h39 extern void dump_skip_to(struct coredump_params *cprm, unsigned long to);
40 extern void dump_skip(struct coredump_params *cprm, size_t nr);
41 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
42 extern int dump_align(struct coredump_params *cprm, int align);
43 int dump_user_range(struct coredump_params *cprm, unsigned long start,
Delf.h70 static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; } in elf_coredump_extra_notes_write() argument
73 extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);
Dbinfmts.h88 int (*core_dump)(struct coredump_params *cprm);
/linux-6.12.1/arch/powerpc/platforms/cell/spufs/
Dcoredump.c119 struct coredump_params *cprm, int dfd) in spufs_arch_write_note() argument
131 if (!dump_emit(cprm, &en, sizeof(en))) in spufs_arch_write_note()
133 if (!dump_emit(cprm, fullname, en.n_namesz)) in spufs_arch_write_note()
135 if (!dump_align(cprm, 4)) in spufs_arch_write_note()
139 ret = spufs_coredump_read[i].dump(ctx, cprm); in spufs_arch_write_note()
151 if (!dump_emit(cprm, buf, ret + 1)) in spufs_arch_write_note()
155 dump_skip_to(cprm, roundup(cprm->pos - ret + sz, 4)); in spufs_arch_write_note()
159 int spufs_coredump_extra_notes_write(struct coredump_params *cprm) in spufs_coredump_extra_notes_write() argument
171 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()
468 spufs_regs_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_regs_dump() argument
470 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump()
525 spufs_fpcr_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_fpcr_dump() argument
527 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump()
955 struct coredump_params *cprm) in spufs_signal1_dump() argument
959 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);
338 ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
/linux-6.12.1/arch/x86/um/
Delfcore.c11 Elf32_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
16 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
36 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs()
43 int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
56 if (!dump_emit(cprm, addr, filesz)) in elf_core_write_extra_data()
64 size_t elf_core_extra_data_size(struct coredump_params *cprm) in elf_core_extra_data_size() argument
/linux-6.12.1/drivers/block/zram/
Dbackend_zstd.c21 zstd_parameters cprm; member
73 zp->cprm = zstd_get_params(params->level, PAGE_SIZE); in zstd_setup_params()
187 req->src, req->src_len, &zp->cprm); in zstd_compress()
/linux-6.12.1/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()
/linux-6.12.1/arch/x86/kernel/fpu/
Dxstate.c1867 static int dump_xsave_layout_desc(struct coredump_params *cprm) in dump_xsave_layout_desc() argument
1881 if (!dump_emit(cprm, &xc, sizeof(xc))) in dump_xsave_layout_desc()
1900 int elf_coredump_extra_notes_write(struct coredump_params *cprm) in elf_coredump_extra_notes_write() argument
1912 if (!dump_emit(cprm, &en, sizeof(en))) in elf_coredump_extra_notes_write()
1914 if (!dump_emit(cprm, owner_name, en.n_namesz)) in elf_coredump_extra_notes_write()
1916 if (!dump_align(cprm, 4)) in elf_coredump_extra_notes_write()
1919 num_records = dump_xsave_layout_desc(cprm); in elf_coredump_extra_notes_write()
/linux-6.12.1/arch/m68k/include/asm/
Dbvme6000hw.h35 pad_u[3], cprm, member
/linux-6.12.1/arch/powerpc/include/asm/
Dspu.h221 int (*coredump_extra_notes_write)(struct coredump_params *cprm);