This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12231] New: reading perfctr events
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 18 Nov 2010 16:43:18 +0000
- Subject: [Bug translator/12231] New: reading perfctr events
- Auto-submitted: auto-generated
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.