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/3635] New: reduce number of global objects


In order to further reduce our consumption of ppc TOC entries,
consider revamping the way script globals (and their locks) are
emitted by the translator.  It may be sufficient to plop them
all into a single global struct, like this:

BEFORE:  int64_t global_var;
         rwlock_t global_var_lock;
         int64_t global_var2;
         rwlock_t global_var2_lock;
         ...

AFTER:   struct globals {
            int64_t var;
            rwlock_t var_lock;
            int64_t var2;
            rwlock_t var2_lock;
            ...
         } globals;

Of course, code that refers to the values would have to adapt.

-- 
           Summary: reduce number of global objects
           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=3635

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