Page 1 of 1

Setting Performance Counters

Posted: Thu Feb 21, 2008 10:58 pm
by el nino
Before i get shot down i'm a newbie, like real new.......

I wanted to measure the I$ misses and d$ misses of my application, and through the PCCR i realise i can, i just haven't got a clue on how to actually set what PCR0 and PCR1 are measuring i.e. event 6. (I've taken this value from the EE core UM).

I know that you can retrieve values through MTC0/MFC0, but is this how you go about setting what the counters measure.

I don't think i've done a good job describing what i'm trying to do, but i hope someone can decipher the garbage i have written!!

Thanks in advance.

Posted: Tue Feb 26, 2008 7:50 am
by Mega Man
There is a better description in the following document:

http://lukasz.dk/files/tx79architecture.pdf