public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2427] New: optimization imporvement
@ 2006-03-06 22:23 hunt at redhat dot com
  2006-04-24 20:09 ` [Bug translator/2427] " fche at redhat dot com
  2006-04-24 20:30 ` [Bug translator/2427] optimize away side-effect-free embedded-C functions fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: hunt at redhat dot com @ 2006-03-06 22:23 UTC (permalink / raw)
  To: systemtap

In the syscall tapset, we do lots of things like

argstr = sprintf("%d, %s, %d", $fd,
_struct_sockaddr_u($uservaddr,$addrlen),$addrlen)

Now, if argstr is not used, the argstr assignment is still not optimized out. I
assume this is because the translator has no way of knowing what
_struct_sockaddr_u() is doing. Is there some way the translator could detect
that it is safe to optimize out or some way we could specify an attribute for
embedded functions to indicate this?

-- 
           Summary: optimization imporvement
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: hunt at redhat dot com


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

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

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

* [Bug translator/2427] optimization imporvement
  2006-03-06 22:23 [Bug translator/2427] New: optimization imporvement hunt at redhat dot com
@ 2006-04-24 20:09 ` fche at redhat dot com
  2006-04-24 20:30 ` [Bug translator/2427] optimize away side-effect-free embedded-C functions fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2006-04-24 20:09 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2006-04-24 20:09 -------
Absent better ideas, will implement this with a Hack(tm).
If an embedded-C function includes this string in its body: /* pure */
then the translator will consider eliding them if their results are unused.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-24 20:09:51
               date|                            |


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

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

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

* [Bug translator/2427] optimize away side-effect-free embedded-C functions
  2006-03-06 22:23 [Bug translator/2427] New: optimization imporvement hunt at redhat dot com
  2006-04-24 20:09 ` [Bug translator/2427] " fche at redhat dot com
@ 2006-04-24 20:30 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2006-04-24 20:30 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |fche at redhat dot com
                   |redhat dot com              |
            Summary|optimization imporvement    |optimize away side-effect-
                   |                            |free embedded-C functions


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

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

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

end of thread, other threads:[~2006-04-24 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06 22:23 [Bug translator/2427] New: optimization imporvement hunt at redhat dot com
2006-04-24 20:09 ` [Bug translator/2427] " fche at redhat dot com
2006-04-24 20:30 ` [Bug translator/2427] optimize away side-effect-free embedded-C functions fche at redhat 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).