This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/9925] New: task_execname(task) incorrect in process.create
- From: "cap at nsc dot liu dot se" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 5 Mar 2009 16:29:07 -0000
- Subject: [Bug tapsets/9925] New: task_execname(task) incorrect in process.create
- Reply-to: sourceware-bugzilla at sourceware dot org
"task" in process.create is according to STAPPROBES.PROCESS(5):
"a handle to the newly created process"
This seems to be true for some parts of "task" but not for all. The PID is
correct but execname is not (is actually the execname of the parent).
The following one-liner illustrates the issue:
stap -e 'probe process.create { printf("currentpid: %d, newpid: %d,
newexecname: %s\n", pid(), task_pid(task), task_execname(task)) }'
With this running I started a few processes (/usr/bin/id, /bin/sleep) from my
bash resulting in:
currentpid: 26872, newpid: 3156, newexecname: bash
currentpid: 26872, newpid: 3157, newexecname: bash
currentpid: 26872, newpid: 3158, newexecname: bash
In the data above currentpid (my bash) is correct, newpid (3156-3158) is also
correct. What's wrong is that newexecname should have been "id", "id", "sleep".
Tested on CentOS-5.3(QA) x86_64 (2.6.18-128.el5) with systemtap-0.7.2-2.el5 and
systemtap-20090228.
--
Summary: task_execname(task) incorrect in process.create
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: cap at nsc dot liu dot se
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.