Skip to content
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 #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

janaknat
Copy link
Contributor

Raw events are configured with PERF_TYPE_RAW.

Added an example that measures CPI using raw events on aarch64 and x86_64.

Raw events are configured with PERF_TYPE_RAW.
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Raw {
/// Raw config of the event
pub config: u64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also include config1 and config2? I'm not sure where config2 is used but config1 is used for some offcore x86 events.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added support for setting config1 and config2.

@janaknat
Copy link
Contributor Author

janaknat commented Dec 6, 2022

@jimblandy Thoughts on this?

@janaknat
Copy link
Contributor Author

@jimblandy Ping.

1 similar comment
@janaknat
Copy link
Contributor Author

janaknat commented Feb 7, 2023

@jimblandy Ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants