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

Support 'pinned' flag #10

Open
jimblandy opened this issue Aug 24, 2020 · 1 comment
Open

Support 'pinned' flag #10

jimblandy opened this issue Aug 24, 2020 · 1 comment
Labels
Builder-incomplete Features supported by Linux but not available via the `Builder` API.

Comments

@jimblandy
Copy link
Owner

Some applications need their counters enabled the entire period, or it's no use. These want to set the pinned bit in the perf_event_attr struct, which causes reads to return EOF if the counter wasn't scheduled.

@jimblandy jimblandy added the Builder-incomplete Features supported by Linux but not available via the `Builder` API. label Aug 24, 2020
@jimblandy
Copy link
Owner Author

It's also essential to be able to set this when creating groups. So just changing Builder isn't sufficient.

Also, this is not just about setting the bit in the perf_event_attr struct. The Group and Counter read methods also need to be prepared for zero-length reads, which is how the interface reports that it was unable to put the counter on the CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builder-incomplete Features supported by Linux but not available via the `Builder` API.
Projects
None yet
Development

No branches or pull requests

1 participant