mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
mm: introduce coredump parameter structure
Introduce coredump parameter data structure (struct coredump_params) to simplify binfmt->core_dump() arguments. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Suggested-by: Ingo Molnar <mingo@elte.hu> Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Roland McGrath <roland@redhat.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9cd80bbb07
commit
f6151dfea2
7 changed files with 69 additions and 53 deletions
|
@ -87,7 +87,7 @@ static int load_flat_shared_library(int id, struct lib_info *p);
|
|||
#endif
|
||||
|
||||
static int load_flat_binary(struct linux_binprm *, struct pt_regs * regs);
|
||||
static int flat_core_dump(long signr, struct pt_regs *regs, struct file *file, unsigned long limit);
|
||||
static int flat_core_dump(struct coredump_params *cprm);
|
||||
|
||||
static struct linux_binfmt flat_format = {
|
||||
.module = THIS_MODULE,
|
||||
|
@ -102,10 +102,10 @@ static struct linux_binfmt flat_format = {
|
|||
* Currently only a stub-function.
|
||||
*/
|
||||
|
||||
static int flat_core_dump(long signr, struct pt_regs *regs, struct file *file, unsigned long limit)
|
||||
static int flat_core_dump(struct coredump_params *cprm)
|
||||
{
|
||||
printk("Process %s:%d received signr %d and should have core dumped\n",
|
||||
current->comm, current->pid, (int) signr);
|
||||
current->comm, current->pid, (int) cprm->signr);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue