This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12508] New: event-counting command line option
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 23 Feb 2011 12:58:05 +0000
- Subject: [Bug translator/12508] New: event-counting command line option
- Auto-submitted: auto-generated
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.