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/2427] New: optimization imporvement


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.


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