[Bug translator/12508] New: event-counting command line option

fche at redhat dot com sourceware-bugzilla@sourceware.org
Wed Feb 23 12:58:00 GMT 2011


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

           Summary: event-counting command line option
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: fche@redhat.com


People seem to find useful the basic "perf -e EVENT -e EVENT2 CMD" type of
invocation, where the tool reports overall event counts.  We could support
such a shortcut too, for example:

    stap -E perf.sw_clock -E 'syscall.*' -c CMD

to be rewritten into something close to

    stap -e 'global c; probe perf.sw_clock,syscall.* { c[pn()]<<<1 }'
         -c CMD

except perhaps the automatic global-c printing loop could restrict itself
to @count() only.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list