This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/6588] New: syscall.exit[_group].return should define name, retstr
- From: "jkenisto at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 3 Jun 2008 20:46:11 -0000
- Subject: [Bug tapsets/6588] New: syscall.exit[_group].return should define name, retstr
- Reply-to: sourceware-bugzilla at sourceware dot org
In syscalls.stp, we have
probe syscall.exit.return = end {}
and
probe syscall.exit_group.return = end {}
Consequently, when I do something like
probe syscall.*.return {
printf("%s returns %s\n", name, retstr)
}
I get a slew of warnings:
WARNING: read-only local variable identifier 'name' at bug.stp:5:28
WARNING: read-only local variable identifier 'retstr' at bug.stp:5:34
WARNING: read-only local variable identifier 'name' at bug.stp:5:28
WARNING: read-only local variable identifier 'retstr' at bug.stp:5:34
WARNING: read-only local variable identifier 'name' at bug.stp:5:28
WARNING: read-only local variable identifier 'retstr' at bug.stp:5:34
WARNING: read-only local variable identifier 'name' at bug.stp:5:28
WARNING: read-only local variable identifier 'retstr' at bug.stp:5:34
syscalls.stp promises that name and retstr will be set for every
syscall.*.return probe.
These particular functions never return, and are blacklisted for return probes;
but there seems to be a fix, which I'll attach.
--
Summary: syscall.exit[_group].return should define name, retstr
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jkenisto at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6588
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.