- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I'm trying to make a small command line tool that displays the actual frequency (especially when Turbo is on) according to the Frequency Algorithm outlined in point 2.2 in the intel whitepaper http://download.intel.com/design/processor/applnots/320354.pdf http://download.intel.com/design/processor/applnots/320354.pdf. However, I'm stuck at the very first step, that is reading the MSR with ECX=0xCE - the following code snippet simply segfaults:
unsigned low, high;
asm volatile ("rdsm" : "=a" (low), "=d" (high) : "c" (0xce));
Any ideas why?
/proc/cpuinfo says that msr flag is present, the processor is an Intel Xeon X5550
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I've found an answer - it looks like the rdmsr instruction requires kernel mode, user space just doesn't cut it. Which is why the msr module must be used to read the MSR.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page