Messages in this thread | | | Date | Fri, 3 Dec 2004 22:32:31 +0100 | From | Sylvain <> | Subject | Re: distinguish kernel thread / user task |
| |
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@didntduck.org> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |