diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 6f6fc1672ad1..79375fc115d2 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -366,6 +366,11 @@ static void task_cpus_allowed(struct seq_file *m, struct task_struct *task) | |||
366 | cpumask_pr_args(&task->cpus_allowed)); | 366 | cpumask_pr_args(&task->cpus_allowed)); |
367 | } | 367 | } |
368 | 368 | ||
369 | static inline void task_core_dumping(struct seq_file *m, struct mm_struct *mm) | ||
370 | { | ||
371 | seq_printf(m, "CoreDumping:\t%d\n", !!mm->core_state); | ||
372 | } | ||
373 | |||
369 | int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, | 374 | int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, |
370 | struct pid *pid, struct task_struct *task) | 375 | struct pid *pid, struct task_struct *task) |
371 | { | 376 | { |
@@ -376,6 +381,7 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, | |||
376 | 381 | ||
377 | if (mm) { | 382 | if (mm) { |
378 | task_mem(m, mm); | 383 | task_mem(m, mm); |
384 | task_core_dumping(m, mm); | ||
379 | mmput(mm); | 385 | mmput(mm); |
380 | } | 386 | } |
381 | task_sig(m, task); | 387 | task_sig(m, task); |