This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/9925] task_execname(task) incorrect in process.create


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]