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/12508] New: event-counting command line option


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.


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