Home
last modified time | relevance | path

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

/openbmc/linux/fs/
H A Dcoredump.c772 cprm.to_skip--; in do_coredump()
781 if (cprm.file) in do_coredump()
807 if (cprm->written + nr > cprm->limit) in __dump_emit()
818 cprm->pos += n; in __dump_emit()
831 cprm->pos += nr; in __dump_skip()
846 if (!__dump_skip(cprm, cprm->to_skip)) in dump_emit()
856 cprm->to_skip = pos - cprm->pos; in dump_skip_to()
876 if (!__dump_skip(cprm, cprm->to_skip)) in dump_emit_page()
880 if (cprm->written + PAGE_SIZE > cprm->limit) in dump_emit_page()
929 unsigned mod = (cprm->pos + cprm->to_skip) & (align - 1); in dump_align()
[all …]
H A Dbinfmt_elf.c1487 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()
1654 count = cprm->vma_count; in fill_files_note()
1714 n = cprm->vma_count - count; in fill_files_note()
1858 struct coredump_params *cprm) in fill_note_info() argument
1955 struct coredump_params *cprm) in write_note_info() argument
1973 !writenote(&info->files, cprm)) in write_note_info()
2043 segs = cprm->vma_count + elf_core_extra_phdrs(cprm); in elf_core_dump()
2082 offset += cprm->vma_data_size; in elf_core_dump()
2130 if (!write_note_info(&info, cprm)) in elf_core_dump()
[all …]
H A Dbinfmt_elf_fdpic.c1229 dump_emit(cprm, men->name, en.n_namesz) && dump_align(cprm, 4) && in writenote()
1230 dump_emit(cprm, men->data, men->datasz) && dump_align(cprm, 4); in writenote()
1507 segs = cprm->vma_count + elf_core_extra_phdrs(cprm); in elf_fdpic_core_dump()
1552 offset += cprm->vma_data_size; in elf_fdpic_core_dump()
1605 if (!writenote(&psinfo_note, cprm)) in elf_fdpic_core_dump()
1607 if (!writenote(&auxv_note, cprm)) in elf_fdpic_core_dump()
1620 dump_skip_to(cprm, dataoff); in elf_fdpic_core_dump()
1622 if (!elf_fdpic_dump_segments(cprm, cprm->vma_meta, cprm->vma_count)) in elf_fdpic_core_dump()
1625 if (!elf_core_write_extra_data(cprm)) in elf_fdpic_core_dump()
1633 if (cprm->file->f_pos != offset) { in elf_fdpic_core_dump()
[all …]
/openbmc/linux/arch/arm64/kernel/
H A 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) \
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()
84 for_each_mte_vma(cprm, i, m) in elf_core_extra_phdrs()
95 for_each_mte_vma(cprm, i, m) { in elf_core_write_extra_phdrs()
108 if (!dump_emit(cprm, &phdr, sizeof(phdr))) in elf_core_write_extra_phdrs()
121 for_each_mte_vma(cprm, i, m) in elf_core_extra_data_size()
[all …]
/openbmc/linux/include/linux/
H A 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
H A 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,
H A 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);
H A Dbinfmts.h88 int (*core_dump)(struct coredump_params *cprm);
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A 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()
H A Dfile.c136 if (!dump_emit(cprm, buf, size)) in spufs_dump_emit()
471 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump()
528 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump()
962 struct coredump_params *cprm) in spufs_signal1_dump() argument
1097 struct coredump_params *cprm) in spufs_signal2_dump() argument
1952 struct coredump_params *cprm) in spufs_mbox_info_dump() argument
1990 struct coredump_params *cprm) in spufs_ibox_info_dump() argument
2033 struct coredump_params *cprm) in spufs_wbox_info_dump() argument
2087 struct coredump_params *cprm) in spufs_dma_info_dump() argument
2092 return spufs_dump_emit(cprm, &info, sizeof(info)); in spufs_dma_info_dump()
[all …]
H A 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);
/openbmc/linux/arch/x86/um/
H A 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
/openbmc/linux/arch/ia64/kernel/
H A 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
/openbmc/linux/arch/powerpc/platforms/cell/
H A 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()
/openbmc/linux/arch/m68k/include/asm/
H A Dbvme6000hw.h35 pad_u[3], cprm, member
/openbmc/linux/arch/powerpc/include/asm/
H A Dspu.h221 int (*coredump_extra_notes_write)(struct coredump_params *cprm);