Re: distinguish kernel thread / user task
From: Sylvain
Date: Fri Dec 03 2004 - 16:34:09 EST
kernel threads have no mm struct, right.
but it appears some programs (user tasks) haven't either ?! actually,
that what I notice..
Sylvain
On Fri, 03 Dec 2004 15:50:19 -0500, Brian Gerst <bgerst@xxxxxxxxxxxxx> wrote:
> 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/