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 translator/10077] New: $return optimization for functions returning void


When wildcard probing function returns, invariably one hits a problem:

[ananth@... ~]$ stap -ve 'probe kernel.function("*@fs/exec.c").return {
printf("%s\n", $return) }'
Pass 1: parsed user script and 51 library script(s) in 520usr/40sys/925real ms.
semantic error: function free_bprm(fs/exec.c) has no return value: identifier
'$return' at <input>:1:62
        source: probe kernel.function("*@fs/exec.c").return { printf("%s\n",
$return) }
                                                                             ^
Pass 2: analyzed script: 29 probe(s), 19 function(s), 0 embed(s), 0 global(s) in
370usr/760sys/1399real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Would it be possible to emit a warning or a string "no $return in this context"
instead of aborting as above?

-- 
           Summary: $return optimization for functions returning void
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: ananth at in dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10077

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