5 Replies Latest reply: Dec 11, 2012 11:55 PM by avk RSS

performance counters

hansen Newbie
Currently Being Moderated

Hi guys,

 

I am trying to access the performance counters of a AMD CPU of family 14h.

 

As I understand there are two registers of interest as documented in the bios and kernel developer reference of the  14h family (attached):

 

- PERF_CTL[3:0]  performance event select

- PERF_CTR[3:0] performance event counter

 

I set PERF_CTL[0] which is at MSR0xC0010000   to  value "0x400076" this should enable the counter and select event 76h

 

reading the value at PERF_CTR[0]  at MSR0xC0010004   it always return value ''0".

 

Are there any further registers I have to be aware of?

 

Please respond guys - I really appreciate your help.

 

Hans

More Like This

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points