This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/9925] task_execname(task) incorrect in process.create
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 5 Mar 2009 17:00:20 -0000
- Subject: [Bug tapsets/9925] task_execname(task) incorrect in process.create
- References: <20090305162902.9925.cap@nsc.liu.se>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2009-03-05 17:00 -------
The output is "correct". The newexename is the same as the parent, since at
process.create time it has just forked itself , but hasn't execed a new process
yet, so the new process has the same name as the old process.
You probably want something like process.exec_complete:
$ stap -v -e 'probe process.exec_complete { printf("parentpid: %d, newpid: %d,
newexecname: %s\n", ppid(), pid(), execname()) }'
parentpid: 22997, newpid: 23674, newexecname: vim
parentpid: 22997, newpid: 23677, newexecname: ls
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9925
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.