thread id and process id in 2.6 kernel

Frank Ch. Eigler fche@redhat.com
Wed Nov 9 16:15:00 GMT 2005


Guang Lei Li <liguangl@cn.ibm.com> writes:

>   In the 2.6 kernel, we should use tgid in task_struct as the process id. 
> And pid in task_struct should be thread id, although in a single thread 
> application pid == tgid.
> [...]

You're exactly right.  When finding such bugs, it may be best to go
straight to bugzilla, and open a bug against the component in question
("tapset" in this case).  In this case, I'll commit your fix.

- FChE



More information about the Systemtap mailing list