linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reading PMU counts with perf leader sampling and perf script
@ 2016-09-09 14:48 Omar Awile
  2016-09-11  3:21 ` Andi Kleen
  2016-09-12 20:04 ` Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 6+ messages in thread
From: Omar Awile @ 2016-09-09 14:48 UTC (permalink / raw)
  To: linux-perf-users@vger.kernel.org

Hello,

I’ve been trying to get periodic readouts of PMU event counts using perf record (similar to what perf stat -I does but with a higher precision than 10ms).

For this I thought I could use leader sampling with ref_cycles and the events I am targeting.

For example something like this:

$ perf record -P -c 2000000 -e '{cycles,instructions,branch-misses}:S' — ./workload

This seems to read out the sample values for the other events whenever the cycle event is sampled.

The next step would be for me to use perf script and a little python script to get the event counts but I can’t seem to find a way to do this. Can someone point me in the right direction?

perf report seems to be able to read these samples but they are shown only as aggregates. Also, perf script would allow me to process/analyze the data myself. If this is currently not possible, how would I go about adding the missing functionality in perf script?

Thank you,

Omar Awile

--  
Omar Awile, Ph.D.
Systems Performance Engineer
CERN - 513/R-046



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-20 20:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 14:48 reading PMU counts with perf leader sampling and perf script Omar Awile
2016-09-11  3:21 ` Andi Kleen
2016-09-20 14:33   ` Omar Awile
2016-09-12 20:04 ` Arnaldo Carvalho de Melo
     [not found]   ` <etPan.57e15392.6894e226.675c@cern.ch>
2016-09-20 19:19     ` Arnaldo Carvalho de Melo
2016-09-20 20:16       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).