Home
last modified time | relevance | path

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

/linux-6.1.9/fs/
Dcoredump.c56 static bool dump_vma_snapshot(struct coredump_params *cprm);
57 static void free_vma_snapshot(struct coredump_params *cprm);
198 static int format_corename(struct core_name *cn, struct coredump_params *cprm, in format_corename() argument
290 __get_dumpable(cprm->mm_flags)); in format_corename()
295 cprm->siginfo->si_signo); in format_corename()
526 struct coredump_params cprm = { in do_coredump() local
544 if (!__get_dumpable(cprm.mm_flags)) in do_coredump()
556 if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) { in do_coredump()
568 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
582 if (cprm.limit == 1) { in do_coredump()
[all …]
Dbinfmt_elf.c81 static int elf_core_dump(struct coredump_params *cprm);
1479 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1486 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1487 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1488 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1645 static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm) in fill_files_note() argument
1654 count = cprm->vma_count; in fill_files_note()
1676 for (i = 0; i < cprm->vma_count; i++) { in fill_files_note()
1677 struct core_vma_metadata *m = &cprm->vma_meta[i]; in fill_files_note()
1714 n = cprm->vma_count - count; in fill_files_note()
[all …]
Dbinfmt_elf_fdpic.c78 static int elf_fdpic_core_dump(struct coredump_params *cprm);
1226 static int writenote(struct memelfnote *men, struct coredump_params *cprm) in writenote() argument
1233 return dump_emit(cprm, &en, sizeof(en)) && in writenote()
1234 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1235 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1444 static bool elf_fdpic_dump_segments(struct coredump_params *cprm, in elf_fdpic_dump_segments() argument
1453 if (!dump_user_range(cprm, meta->start, meta->dump_size)) in elf_fdpic_dump_segments()
1466 static int elf_fdpic_core_dump(struct coredump_params *cprm) in elf_fdpic_core_dump() argument
1495 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
1505 tmp = elf_dump_thread_status(cprm->siginfo->si_signo, in elf_fdpic_core_dump()
[all …]
/linux-6.1.9/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.1.9/include/linux/
Delfcore.h117 extern Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm);
119 elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);
121 elf_core_write_extra_data(struct coredump_params *cprm);
122 extern size_t elf_core_extra_data_size(struct coredump_params *cprm);
124 static inline Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
129 static inline int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) in elf_core_write_extra_phdrs() argument
134 static inline int elf_core_write_extra_data(struct coredump_params *cprm) in elf_core_write_extra_data() argument
139 static inline size_t elf_core_extra_data_size(struct coredump_params *cprm) in elf_core_extra_data_size() argument
Dcoredump.h37 extern void dump_skip_to(struct coredump_params *cprm, unsigned long to);
38 extern void dump_skip(struct coredump_params *cprm, size_t nr);
39 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
40 extern int dump_align(struct coredump_params *cprm, int align);
41 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.1.9/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 dump_skip_to(cprm, roundup(cprm->pos - ret + sz, 4)); in spufs_arch_write_note()
156 int spufs_coredump_extra_notes_write(struct coredump_params *cprm) in spufs_coredump_extra_notes_write() argument
168 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);
338 ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
/linux-6.1.9/arch/x86/um/
Delfcore.c10 Elf32_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
15 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()
63 size_t elf_core_extra_data_size(struct coredump_params *cprm) in elf_core_extra_data_size() argument
/linux-6.1.9/arch/ia64/kernel/
Delfcore.c10 Elf64_Half elf_core_extra_phdrs(struct coredump_params *cprm) in elf_core_extra_phdrs() argument
15 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()
63 size_t elf_core_extra_data_size(struct coredump_params *cprm) in elf_core_extra_data_size() argument
/linux-6.1.9/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.1.9/arch/m68k/include/asm/
Dbvme6000hw.h35 pad_u[3], cprm, member
/linux-6.1.9/arch/powerpc/include/asm/
Dspu.h221 int (*coredump_extra_notes_write)(struct coredump_params *cprm);