This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
How to understand the pid() and new_pid are same value in executing forktracker.stp?
- From: Nan Xiao <xiaonan830818 at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Fri, 23 Oct 2015 08:15:59 +0800
- Subject: How to understand the pid() and new_pid are same value in executing forktracker.stp?
- Authentication-results: sourceware.org; auth=none
Hi guys,
Greetings from me!
I am using forktracker.stp(https://sourceware.org/systemtap/examples/process/forktracker.stp)
script to track fork process, but the output likes this:
......
Thu Oct 22 05:09:42 2015 : virt-manager (8713) created 8713
Thu Oct 22 05:09:42 2015 : virt-manager (8713) created 8713
Thu Oct 22 05:09:42 2015 : virt-manager (8713) created 8713
Thu Oct 22 05:09:43 2015 : virt-manager (8713) created 8713
......
I can't understand why pid() and new_pid are same. I also submit a
issue on SO (http://stackoverflow.com/questions/33274128/how-to-understand-the-pid-and-new-pid-are-same-value-in-executing-forktracker),
but until now, no one answer this issue.
Could anyone help on this issue? Thanks very much in advance!
Best Regards
Nan Xiao