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/11736] New: new -t option to have per-derived-probe timings


Current STAP_TIMING (-t) code only keeps a single Stat* object
per base (end-user script-level) probe.  This means that for
a script such as  'probe syscall.* {}'  we get only a single
-t summary line.  It is just as useful sometimes to have a
detailed list of times/hits per low-level probe point rather
than script-level, so that each 'kernel.function("sys_foo")'
created for syscall.* can get its own timing statistic.  This
should be a new option (rather than a change to -t's current
behavior).

See also bug #10788

Implementation would focus on translate.cxx:emit_common_header():

      oss << "c->statp = & time_" << dp->basest()->name << ";" << endl;  // -t
anti-dupe

where the basest() part would be nuked.  Instead, a per-pp() Stat would
have to be declared elsewhere and referenced here.

-- 
           Summary: new -t option to have per-derived-probe timings
           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=11736

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