Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow for collection of more PMUs than are physically available. #1737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DivineOb
Copy link

Normally we can only collect as many PMUs as we have physical PMU counters because they are managed as a single pinned group and extra requested PMUs will not be collected. With this patch we instead collect each PMU as a separate group once this limit is hit using PMU multiplexing.

Also fix a number of typos.

Normally we can only collect as many PMUs as we have physical PMU
counters because they are managed as a single pinned group and extra
requested PMUs will not be collected. With this patch we instead collect
each PMU as a separate group once this limit is hit using PMU
multiplexing.
@LebedevRI
Copy link
Collaborator

Could you please split the typos into a preparatory PR?

Would #1380 address your usecase?

// has lower overhead. Group multiplexing doesn't work on all platforms so if
// that fails try again without using groups.
bool group_pmus = true;
retry_without_groups:
Copy link
Member

Choose a reason for hiding this comment

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

maybe extracting this into a separate method and calling it with group_pmus as a parameter (and having a return value to indicate whether retry should happen) would be cleaner than a goto

@dmah42 dmah42 added the incomplete work needed label Aug 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
incomplete work needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants