Bug 12231 - reading perfctr events
Summary: reading perfctr events
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 16:43 UTC by Frank Ch. Eigler
Modified: 2013-01-28 19:54 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2010-11-18 16:43:06 UTC
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)
}
Comment 1 Stan Cox 2013-01-28 19:54:48 UTC
Add perf.counter probes for on demand performance monitor reading.
commit: 3689db0508
(et al)