History

elfcore: Add a cprm parameter to elf_core_extra_{phdrs,data_size}

A subsequent fix for arm64 will use this parameter to parse the vma information from the snapshot created by dump_vma_snapshot() rather than traversing the vma list without the mmap_lock.

Catalin Marinas committed 3 years ago

Commit 19e183b1 parent 736eedc6 files · +14 −14Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/elfcore.h+4−4
@@ -105,14 +105,14 @@ int elf_core_copy_task_fpregs(struct task_struct *t, elf_fpregset_t *fpu); · 104 unmodified lines
105105 * Dumping its extra ELF program headers includes all the other information
106106 * a debugger needs to easily find how the gate DSO was being used.
107107 */
108−extern Elf_Half elf_core_extra_phdrs(void);
108+extern Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm);
109109 extern int
110110 elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);
111111 extern int
112112 elf_core_write_extra_data(struct coredump_params *cprm);
113−extern size_t elf_core_extra_data_size(void);
113+extern size_t elf_core_extra_data_size(struct coredump_params *cprm);
114114 #else
115−static inline Elf_Half elf_core_extra_phdrs(void)
115+static inline Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm)
116116 {
117117 return 0;
118118 }
@@ -127,7 +127,7 @@ static inline int elf_core_write_extra_data(struct coredump_params *cprm) · 8 unmodified lines
127127 return 1;
128128 }
129129
130−static inline size_t elf_core_extra_data_size(void)
130+static inline size_t elf_core_extra_data_size(struct coredump_params *cprm)
131131 {
132132 return 0;
133133 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t