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/6588] New: syscall.exit[_group].return should define name, retstr


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.


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