Re: perfctr on UltraSparcT1

2007-08-31 Thread jiaqi zhang
Oops. I'm so sorry. It is solved and this is totally my fault. However, there is still another question: Should I always bind the thread to a specific virtual cpu? Because if it was rescheduled to other cpu, the content in the registers would not be consistent. Or does the kernel forbid this kind

perfctr on UltraSparcT1

2007-08-31 Thread jiaqi zhang
Hello, I'm doing performance experiments of my applications on UltraSparc T1. In order to test the data of cache miss or other things, I'm in need of some ways to access PIC and PCR. I wrote a simple module to read and set these registers using the macros found in asm-sparc64/system.h. However, no