public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10076] New: $return optimization for functions returning void
@ 2009-04-16 16:51 ananth at in dot ibm dot com
  2009-04-16 16:54 ` [Bug translator/10076] " fche at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ananth at in dot ibm dot com @ 2009-04-16 16:51 UTC (permalink / raw)
  To: systemtap

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=10076

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/10076] $return optimization for functions returning void
  2009-04-16 16:51 [Bug translator/10076] New: $return optimization for functions returning void ananth at in dot ibm dot com
@ 2009-04-16 16:54 ` fche at redhat dot com
  2009-04-16 17:01 ` ananth at in dot ibm dot com
  2009-04-16 17:02 ` ananth at in dot ibm dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2009-04-16 16:54 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-04-16 16:53 -------
See $$return.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/10076] $return optimization for functions returning void
  2009-04-16 16:51 [Bug translator/10076] New: $return optimization for functions returning void ananth at in dot ibm dot com
  2009-04-16 16:54 ` [Bug translator/10076] " fche at redhat dot com
@ 2009-04-16 17:01 ` ananth at in dot ibm dot com
  2009-04-16 17:02 ` ananth at in dot ibm dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ananth at in dot ibm dot com @ 2009-04-16 17:01 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From ananth at in dot ibm dot com  2009-04-16 17:01 -------
*** Bug 10077 has been marked as a duplicate of this bug. ***

-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/10076] $return optimization for functions returning void
  2009-04-16 16:51 [Bug translator/10076] New: $return optimization for functions returning void ananth at in dot ibm dot com
  2009-04-16 16:54 ` [Bug translator/10076] " fche at redhat dot com
  2009-04-16 17:01 ` ananth at in dot ibm dot com
@ 2009-04-16 17:02 ` ananth at in dot ibm dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ananth at in dot ibm dot com @ 2009-04-16 17:02 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From ananth at in dot ibm dot com  2009-04-16 17:02 -------
Thanks Frank. Works for me.

Guess it needs to be better (visibly) documented. Its currently just in the NEWS
file.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-16 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16 16:51 [Bug translator/10076] New: $return optimization for functions returning void ananth at in dot ibm dot com
2009-04-16 16:54 ` [Bug translator/10076] " fche at redhat dot com
2009-04-16 17:01 ` ananth at in dot ibm dot com
2009-04-16 17:02 ` ananth at in dot ibm dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).