cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable performance monitor on SPC58x series

David Dieckow
Associate II
Posted on December 04, 2017 at 14:33

Hi,

I'm trying to measure performance events with the integrated performance monitor but sadly I'm not able to make the performance counters run. I tried the follwoing to enable:

# freeze all global counters

e_lis       %r3, 0x8000

e_or2i      %r3, 0x0000

mtpmr       400, %r3

#set up pipeline stall event in counter 0

e_lis       %r3, 0x27

e_or2i      %r3, 0x0000 #event 39

mtpmr       144, %r3

# un-freeze all global counters

e_lis       %r3, 0x0

e_or2i      %r3, 0x0

mtpmr       400, %r3

But counter 0 (PMC0) does not increment. What am I missing?

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
0 REPLIES 0