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/12231] New: reading perfctr events


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.


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