This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: what does 'probe process(PID_OR_NAME).clone' mean?
On Thu, May 29, 2008 at 05:41:14PM +0530, Ananth N Mavinakayanahalli wrote:
> On Wed, May 28, 2008 at 03:37:01PM -0500, David Smith wrote:
> > David Smith wrote:
> >
> > On more question. Frank and I bounced a few ideas on irc the other day,
> > and we wondered if there was a good way on UTRACE_EVENT(DEATH) to tell
> > the difference between a "thread" death and "process" death?
>
> Thread dying => task_struct->pid != task_struct->tgid
>
> and
>
> Process dying => task_struct->pid == task_struct->tgid
Hmm.. I don't think the above is enough.. you may also have to check if
task_struct->thread_group is an empty list or not.