-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the MSR event support #27
Conversation
Thanks for the PR! Is there any documentation for what the MSR counters mean? I found an enum in the kernel source that has more than what's added here but no documentation for it. |
Looking a bit more, it seems like the best documentation for these would be the intel reference manuals using the actual MSR register names from here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ended up being a rather big review. Some general comments:
- Please run
cargo +nightly fmt
. That will make sure to get your comments formatted properly - Please fix the clippy warnings.
The msr kernel perf module is x86-specific. It is better to indicate that to users of the crate directly. In addition, this way when more event types come we don't have to worry about, for example, the x86 MSR event and the ARM MSR event having a name clash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM! Thanks for the PR!
No description provided.