Messages in this thread | | | From | Alan Cox <> | Subject | Re: Accessing Pentium MSRs | Date | Tue, 9 Apr 1996 13:23:34 +0100 (BST) |
| |
> Over the weekend, I crufted together a little kernel patch that adds two > syscalls to let processes access some of the Pentium MSR registers. Using these > event counters, you can analyze how your code behaves (e.g. how often the > second pipeline is in use, or how many branches are taken). If someone is > interested, I'll post the patch here.
Sounds useful. I assume you are also saving/restoring the values over context switches ?. Would making the MSR access a ptrace extension be better than new syscalls ?
| |