diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2008-02-08 07:18:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:24 -0500 |
commit | df5f8314ca30d6a76735748e5ba4ca9809c0f434 (patch) | |
tree | e0a6157b1666a320e69586a81c77a3fe83b36a2a /include/asm-s390 | |
parent | a56d3fc74c0178c5f41c48315604d62cff4e746d (diff) |
proc: seqfile convert proc_pid_status to properly handle pid namespaces
Currently we possibly lookup the pid in the wrong pid namespace. So
seq_file convert proc_pid_status which ensures the proper pid namespaces is
passed in.
[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: another build fix]
[akpm@linux-foundation.org: s390 build fix]
[akpm@linux-foundation.org: fix task_name() output]
[akpm@linux-foundation.org: fix nommu build]
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andrew Morgan <morgan@kernel.org>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/processor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h index 4f744609cd11..dfec2d011c0d 100644 --- a/include/asm-s390/processor.h +++ b/include/asm-s390/processor.h | |||
@@ -161,6 +161,7 @@ struct stack_frame { | |||
161 | /* Forward declaration, a strange C thing */ | 161 | /* Forward declaration, a strange C thing */ |
162 | struct task_struct; | 162 | struct task_struct; |
163 | struct mm_struct; | 163 | struct mm_struct; |
164 | struct seq_file; | ||
164 | 165 | ||
165 | /* Free all resources held by a thread. */ | 166 | /* Free all resources held by a thread. */ |
166 | extern void release_thread(struct task_struct *); | 167 | extern void release_thread(struct task_struct *); |
@@ -177,7 +178,7 @@ extern unsigned long thread_saved_pc(struct task_struct *t); | |||
177 | /* | 178 | /* |
178 | * Print register of task into buffer. Used in fs/proc/array.c. | 179 | * Print register of task into buffer. Used in fs/proc/array.c. |
179 | */ | 180 | */ |
180 | extern char *task_show_regs(struct task_struct *task, char *buffer); | 181 | extern void task_show_regs(struct seq_file *m, struct task_struct *task); |
181 | 182 | ||
182 | extern void show_registers(struct pt_regs *regs); | 183 | extern void show_registers(struct pt_regs *regs); |
183 | extern void show_code(struct pt_regs *regs); | 184 | extern void show_code(struct pt_regs *regs); |