Hi folks,
I want to do some performance monitoring using the processor's built-in counters, but when I tried using the RDPMC instruction, I got a segmentation fault on Mac OS/X, both when using sudo and when not.
Update:
Apparently the kernel needs to need the CR4 bit enabling that feature in user mode. In Mac OS/X this is unlikely but Linux remains a possibility.
Thanks.