This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I think your paranoia is ok to make sure there's a meaningful mm. I was more interested in what you meant by "coopted by" -- in which cases could a kernel thread pop in without changing current to itself?
Normally kernel threads don't have an associated mm struct. But they can "coopt" one from a user thread (for example when doing aio on behave of some process), then current->mm != NULL, but current->flags still has PT_KTHREAD. IMHO we should not report such mm sizes.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |