-
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 support for Raw Events #38
Conversation
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.
Thanks for the PR! LGTM with one comment about the example. The values don't work on my machine (not surprising) so having a comment on what platform/vendor they're supposed to work on would be helpful.
I've added a few different changes to make it a bit easier to use in the common case, improve documentation, and clean up things a bit.
let insns_retired: Raw = Raw::new(0x08); | ||
let cpu_cycles: Raw = Raw::new(0x11); |
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.
Do you have a link or somewhere that describes where these values come from and what platform they're valid for? The example is useful but not likely to work on most people's machines. At the very minimum a comment describing what platform this is expected to work on would be useful.
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.
Ah. These are armv8 pmu events. I was using the Neoverse Technical reference: https://developer.arm.com/documentation/100616/0400/debug-descriptions/performance-monitor-unit/pmu-events.
Again, thanks for the PR! I'll put out a new release later tonight when I have the time. |
Same as jimblandy/perf-event#25