[Bug tapsets/6588] New: syscall.exit[_group].return should define name, retstr

jkenisto at us dot ibm dot com sourceware-bugzilla@sourceware.org
Tue Jun 3 23:35:00 GMT 2008


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.



More information about the Systemtap mailing list