OpenVZ Forum - RDF feed
type: channel
items: [PATCH] Use helpers to obtain task pid in printks (arch code)

[PATCH] Use helpers to obtain task pid in printks (arch code)
type: item
description: From: Alexey Dobriyan <adobriyan@openvz.org> One of the easiest things to isolate is the pid printed in kernel log. There was a patch, that made this for arch-independent code, this one makes so for arch/xxx files. It took some time to cross-compile it, but hopefully these are all the printks in arch code. Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- arch/alpha/kernel/semaphore.c | 16 +-- arch/alpha/kernel/traps.c | 6 - arch/alpha/mm/fault.c | 2 arch/arm/kernel/process.c | 2 arch/arm/kernel/ptrace.c | 8 - arch/arm/kernel/traps.c | 10 - arch/arm/mm/alignment.c | 2 arch/i386/kernel/process.c | 2 arch/i386/kernel/signal.c | 4 arch/i386/kernel/traps.c | 4 arch/i386/mm/fault.c | 4 arch/ia64/ia32/sys_ia32.c | 6 - arch/ia64/kernel/perfmon.c | 161 ++++++++++++++++---------------- arch/ia64/kernel/perfmon_default_smpl.c | 8 - arch/ia64/kernel/process.c | 3 arch/ia64/kernel/traps.c | 6 - arch/ia64/kernel/unaligned.c | 5 arch/m32r/kernel/traps.c | 2 arch/m68k/kernel/traps.c | 4 arch/mips/kernel/traps.c | 2 arch/parisc/kernel/traps.c | 10 - arch/parisc/kernel/unaligned.c | 2 arch/parisc/mm/fault.c | 2 arch/powerpc/kernel/process.c | 2 arch/powerpc/kernel/traps.c | 2 arch/s390/kernel/process.c | 2 arch/sh/kernel/process.c | 2 arch/sh/kernel/signal.c | 4 arch/sh/kernel/traps.c | 7 - arch/sh64/kernel/traps.c | 4 arch/sh64/mm/fault.c | 4 arch/sparc/kernel/ptrace.c | 4 arch/sparc/kernel/sys_sparc.c | 2 arch/sparc/kernel/traps.c | 4 arch/sparc64/kernel/traps.c | 2 arch/um/sys-x86_64/sysrq.c | 4 arch/xtensa/kernel/traps.c | 6 - 37 files changed, 163 insertions(+), 157 deletions(-) diff --git a/arch/alpha/kernel/semaphore.c b/arch/alpha/kernel/semaphore.c --- a/arch/alpha/kernel/semaphore.c +++ b/arch/alpha/kernel/semaphore.c @@ -69,7 +69,7 @@ __down_failed(struct semaphore *sem) #ifdef CONFIG_DEBUG_SEMAPHORE printk("%s(%d): down failed(%p)\n", - tsk->comm, tsk->pid, sem); + tsk->comm, task_pid_nr(tsk), sem); #endif tsk->st…
creator: Pavel Emelianov
date: 2007-08-27T07:30:06-00:00