[Bug translator/12231] New: reading perfctr events
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Nov 18 16:43:00 GMT 2010
http://sourceware.org/bugzilla/show_bug.cgi?id=12231
Summary: reading perfctr events
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sources.redhat.com
ReportedBy: fche@redhat.com
Depends on: 11550
After bug #909, we can attach to various hardware performance counters
in overflow/callback mode. We lack a mechanism to read snapshots of
those values at random times, which would enable simple per-process or
per-cpu counting of those events.
Some syntax options, depending on bug #11550 dynamic-parameters:
global var1
probe perf.type(NN).config(MM).count(var1) {}
probe end { println("Total: ", var1) }
global var2
probe process(....).perf.type(NN).config(MM).count(var2) {}
probe end {
foreach (v = [tid+] in var2)
println ("thread ", tid, " count ", v)
}
--
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