hwpmc with opteron 6128

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Thu, 30 May 2013 18:21:02 +0300
I am trying to do a very basic thing with hwpmc on this CPU:

CPU: AMD Opteron(tm) Processor 6128 (1999.05-MHz K8-class CPU)
hwpmc: SOFT/16/64/0x67<INT,USR,SYS,REA,WRI> TSC/1/64/0x20<REA>
K8/4/48/0x1ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA>

What I am trying is:
$ pmcstat -T -S instructions

What I am getting is just:
PMC: [FR_RETIRED_X86_INSTRUCTIONS] Samples: 0 (0.0%) , 0 unresolved

and nothing else on the screen.

Has anyone had a success with this class of processors?
Should it be supported?
Any ideas/suggestions/hints?

P.S. pmccontrol -L reports a whole bunch of "K8" counters, just a small random
sub-sample:
        BU_FILL_INTO_L2
        IC_FETCH
        IC_MISS
        IC_REFILL_FROM_L2
        IC_REFILL_FROM_SYSTEM
        IC_L1_ITLB_MISS_AND_L2_ITLB_HIT
        IC_L1_ITLB_MISS_AND_L2_ITLB_MISS
        IC_MICROARCHITECTURAL_RESYNC_BY_SNOOP
        IC_INSTRUCTION_FETCH_STALL
        IC_RETURN_STACK_HIT
        IC_RETURN_STACK_OVERFLOW
        FR_RETIRED_X86_INSTRUCTIONS
        FR_RETIRED_UOPS
        FR_RETIRED_BRANCHES
        FR_RETIRED_BRANCHES_MISPREDICTED
        FR_RETIRED_TAKEN_BRANCHES
        FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED

-- 
Andriy Gapon
Received on Thu May 30 2013 - 13:21:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC