]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Fix the pid and ppid variables in multithreaded processes.
authorNick Alcock <nick.alcock@oracle.com>
Mon, 17 Mar 2014 16:29:34 +0000 (16:29 +0000)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 24 Apr 2014 09:32:37 +0000 (05:32 -0400)
commitde11935fd3dbb605891a6f16763329fbdc9c43a4
treebdf844b66c1874a7fca2ac107f6c771fa17e3aad
parent49f212988a32330e2fa1a7fd9c702b9562a880c9
Fix the pid and ppid variables in multithreaded processes.

pid is currently equal to the Linux-side PID: i.e., from userspace's
perspective, the thread ID.  tgid is equal to the thread ID of the parent.  Both
of these are at best inconvenient and at worst wrong: they should both use the
thread group ID of their respective task, which corresponds to the
userspace-visible PID.

Orabug: 18412802
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace_dif.c