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
105 * Dumping its extra ELF program headers includes all the other information105 * Dumping its extra ELF program headers includes all the other information
106 * a debugger needs to easily find how the gate DSO was being used.106 * a debugger needs to easily find how the gate DSO was being used.
107 */107 */
108extern Elf_Half elf_core_extra_phdrs(void);108extern Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm);
109extern int109extern int
110elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);110elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset);
111extern int111extern int
112elf_core_write_extra_data(struct coredump_params *cprm);112elf_core_write_extra_data(struct coredump_params *cprm);
113extern size_t elf_core_extra_data_size(void);113extern size_t elf_core_extra_data_size(struct coredump_params *cprm);
114#else114#else
115static inline Elf_Half elf_core_extra_phdrs(void)115static inline Elf_Half elf_core_extra_phdrs(struct coredump_params *cprm)
116{116{
117 return 0;117 return 0;
118}118}
@@ -127,7 +127,7 @@ static inline int elf_core_write_extra_data(struct coredump_params *cprm) · 8 unmodified lines
127 return 1;127 return 1;
128}128}
129 129
130static inline size_t elf_core_extra_data_size(void)130static inline size_t elf_core_extra_data_size(struct coredump_params *cprm)
131{131{
132 return 0;132 return 0;
133}133}

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