Re: distinguish kernel thread / user task
From: Brian Gerst
Date: Fri Dec 03 2004 - 15:51:59 EST
Sylvain wrote:
I am trying to do a tool to record task switching...separating also
kernel/user tasks, but I got some trouble with that last case.
I confused since "ps" is actually able to distinguish kernel thread
from user task.
I wouldn't had a flag if It 's not necessary
Sylvain
Pstools doesn't really know the difference between user and kernel
threads. It only shows kernel threads as swapped out (in brackets)
because they have an RSS of zero (since kernel threads have no mm struct).
--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/