2017-12-04 05:33 AM
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, 0x0000mtpmr 400, %r3#set up pipeline stall event in counter 0
e_lis %r3, 0x27
e_or2i %r3, 0x0000 #event 39mtpmr 144, %r3
# un-freeze all global counters
e_lis %r3, 0x0
e_or2i %r3, 0x0mtpmr 400, %r3But counter 0 (PMC0) does not increment. What am I missing?