aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/array.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 725a650bbbb8..762aea9c9c71 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -321,6 +321,16 @@ static inline void task_context_switch_counts(struct seq_file *m,
321 p->nivcsw); 321 p->nivcsw);
322} 322}
323 323
324static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
325{
326 seq_printf(m, "Cpus_allowed:\t");
327 seq_cpumask(m, &task->cpus_allowed);
328 seq_printf(m, "\n");
329 seq_printf(m, "Cpus_allowed_list:\t");
330 seq_cpumask_list(m, &task->cpus_allowed);
331 seq_printf(m, "\n");
332}
333
324int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, 334int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
325 struct pid *pid, struct task_struct *task) 335 struct pid *pid, struct task_struct *task)
326{ 336{
@@ -335,6 +345,7 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
335 } 345 }
336 task_sig(m, task); 346 task_sig(m, task);
337 task_cap(m, task); 347 task_cap(m, task);
348 task_cpus_allowed(m, task);
338 cpuset_task_status_allowed(m, task); 349 cpuset_task_status_allowed(m, task);
339#if defined(CONFIG_S390) 350#if defined(CONFIG_S390)
340 task_show_regs(m, task); 351 task_show_regs(m, task);