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/2341] New: optimize locks for read-mostly variables


This is a good task for someone who wants to dip a toe into the translator
optimizer.  They focus on the emit_locks/emit_unlocks functions in translate.cxx.

- elide all global variable lock/unlock operations from begin/end probes

- in translate_pass(), compute another varuse_collecting_visitor instance, over
all probes except begin/end probes; put it into a new c_unparser field
- within emit_locks/unlocks, elide a read lock that would be taken for a global,
if it turns out that it is not written to in any normal probe.  That is, if that
newly computed semi-global varuse_collecting_visitor instance does *not* note a
global as written-to, then we don't have to lock it here to read it safely.

-- 
           Summary: optimize locks for read-mostly variables
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


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

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