I need measure L1 and L2 cache misses for my procedures.
I know how to do (Performance Counters) but I have troubles with this because on WinXP as normal user I can't set PCE flag
of the control register CR4. PCE flag allows use perfomance counters in the user mode but unfortunatelly it is cleared in WinXP. So I have to use
MOV command with CR4 as argument but it is forbidden for normal user
(its priviledged instruction only for OS)
Have anyone any idea how to do it

Posted on 2005-02-19 08:54:02 by tutek
I've tried using a driver to set the PCE flag in CR4 but Windows always seems to clear it again once back in user mode. Looks to me like you'll have to do it all in a driver. :wink:
Posted on 2005-02-19 14:45:24 by The Dude of Dudes