wspy – adding support for –show-counters
Added a new option to wspy to get the performance counters from the linux kernel. This builds on my previous learnings to inventory the system and build counter information provided by the system including event numbers, umasks and other fields.
Will make it easier to programatically use counter names in a planned measurement option. One shortcut I have made so far is to make it work for systems I have (Intel Haswell, Intel Silvermont, AMD Jaguar and AMD Kaveri) but not yet completely generalize the mask processing to any values presented by the kernel.
Below is the list of counters provided on my i7-4770 reference machine. Note that some counter names such as “clockticks” are part of multiple devices and hence have the group prepended. Others such as “instructions” only appear in one group and the group name is not prepended.
mev@popayan:~/wspy$ ./wspy --show-counters sleep 5 ./wspy: running until sleep completes uncore_cbox_3.clockticks type=11 config=0x000000ff cstate_pkg.c3-residency type=15 config=0x00000001 cstate_pkg.c6-residency type=15 config=0x00000002 cstate_pkg.c7-residency type=15 config=0x00000003 c2-residency type=15 config=0x00000000 uncore_cbox_1.clockticks type=9 config=0x000000ff energy-ram type=13 config=0x00000003 energy-gpu type=13 config=0x00000004 energy-cores type=13 config=0x00000001 energy-pkg type=13 config=0x00000002 topdown-recovery-bubbles type=4 config=0x0120030d topdown-slots-issued type=4 config=0x0000010e topdown-fetch-bubbles type=4 config=0x0000019c mem-loads type=4 config=0x000001cd config1=0x00000003 el-commit type=4 config=0x000002c8 el-capacity type=4 config=0x00000254 topdown-total-slots type=4 config=0x0020003c el-conflict type=4 config=0x00000154 mem-stores type=4 config=0x000082d0 tx-start type=4 config=0x000001c9 cache-misses type=4 config=0x0000412e tx-capacity type=4 config=0x00000254 el-abort type=4 config=0x000004c8 tx-conflict type=4 config=0x00000154 branch-instructions type=4 config=0x000000c4 ref-cycles type=4 config=0x00000300 tx-commit type=4 config=0x000002c9 cpu-cycles type=4 config=0x0000003c instructions type=4 config=0x000000c0 branch-misses type=4 config=0x000000c5 tx-abort type=4 config=0x000004c9 el-start type=4 config=0x000001c8 cycles-t type=4 config=0x10000003c cache-references type=4 config=0x00004f2e topdown-slots-retired type=4 config=0x000002c2 bus-cycles type=4 config=0x0000013c cycles-ct type=4 config=0x30000003c uncore_cbox_2.clockticks type=10 config=0x000000ff data_reads type=7 config=0x00000001 data_writes type=7 config=0x00000002 uncore_cbox_0.clockticks type=8 config=0x000000ff cstate_core.c3-residency type=14 config=0x00000001 cstate_core.c6-residency type=14 config=0x00000002 cstate_core.c7-residency type=14 config=0x00000003 smi type=6 config=0x00000004 tsc type=6 config=0x00000000 aperf type=6 config=0x00000001 mperf type=6 config=0x00000002
Comments
wspy – adding support for –show-counters — No Comments
HTML tags allowed in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>