On Tue, Oct 30, 2007 at 10:40:46AM -0700, Joe Perches wrote:
> Perhaps instead of unsigned long?
>
> bool skipped_ip; //delayed initialization
Ooh, I forgot we had bool. I'll fix that in a later patch.
Jeff
--
Work email - jdike at linux dot intel dot com
---
On Tue, 2007-10-30 at 13:28 -0400, Jeff Dike wrote:
> +unsigned long get_wchan(struct task_struct *p)
> +{
> + unsigned long stack_page, sp, ip, count = 0;
Perhaps instead of unsigned long?
bool skipped_ip;//delayed initialization
> +
> + if ((p == NULL) || (p == current) || (p->
Implement get_wchan - the algorithm is similar to x86. It starts with
the stack pointer of the process in question and looks above that for
addresses that are kernel text. The second one which isn't in the
scheduler is the one that's returned. The first one is ignored
because that will be UML's
From: Karol Swietlicki <[EMAIL PROTECTED]>
This patch removes some code which ran at every boot, but does not
seem to do anything anymore. Please test. It works for me but mistakes
can happen.
Signed-off-by: Karol Swietlicki <[EMAIL PROTECTED]>
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
ar
Get rid of asmlinkage and remove some old cruft from asm/linkage.h.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/sys-i386/tls.c |9 +
include/asm-um/linkage.h |7 ---
2 files changed, 5 insertions(+), 11 deletions(-)
Index: linux-2.6.22/arch/um/sys-i386/tls.c
==
From: WANG Cong <[EMAIL PROTECTED]>
This patch contains varied fixes and improvements for some files under
arch/um/os-Linux/, such as a typo fix in a perror message, a missing
argument fix for a printf, some constifying for pointers and so on.
[ jdike - made sigprocmask failure return -errno inst
These four patches are non-urgent and should wait for 2.6.25. Three
of them are code cleanup and the other is an implementation of
get_wchan, which no one has been complaining about.
Jeff
--
Work email - jdike at linux dot intel dot com
-