WCHAN wrong for i386-kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
------- Forwarded message -------
From: "Ingo Molnar" <[email protected]>
To: "Gerhard Kurz" <[email protected]>
Cc:
Subject: Re: WCHAN wrong for i386-kernel
Date: Sun, 01 Apr 2007 20:30:49 +0200
Quoted 8 lines · Gerhard Kurz
Hi,
There is a minor bug in kernels for i386 (i found it in 2.6.14.2, but looking at the source code of 2.6.20, it should be there also).
Symptom: For a task that sleeps e.g. in
sys_nanosleep, the wchan value fromget_wchan(inarch/i386/kernel/process.c) is wrong.
Quoted 6 lines
Reason: To get the correct wchan value, all
__schedfunctions must have a framepointer. Currently only the functions inkernel/sched.care compiled with -fno-omit-frame-pointer. (see kernel/Makefile)But
sys_nanosleepcallsschedule_timeout_interruptible(inkernel/timer.c), which doesn't have a framepointer.
ah, indeed - nice find!
could you please report this to lkml too? It should be fixed, and by sending it to lkml we make it sure that someone picks it up eventually, if i dont get around fixing it in time.
Ingo