Skip to content

Request to add branch misprediction ratio on Intel #185

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

Closed
hsane-dev opened this issue Jan 29, 2025 · 2 comments · Fixed by #207
Closed

Request to add branch misprediction ratio on Intel #185

hsane-dev opened this issue Jan 29, 2025 · 2 comments · Fixed by #207
Labels
enhancement New feature or request

Comments

@hsane-dev
Copy link

Branch misses and branches are already collected by perf-stat and are core events. Can the ratio "branch-misses/branches" be added as an event on Intel collection metrics? This is an absolute metric and cannot be compared to the one in the TMA.

@harp-intel harp-intel added the enhancement New feature or request label Jan 29, 2025
@harp-intel
Copy link
Contributor

@hsane-dev Do these look like the correct events?

BR_INST_RETIRED.ALL_BRANCHES
BR_MISP_RETIRED.ALL_BRANCHES

Misprediction Ratio = BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES

@hsane-dev
Copy link
Author

That is correct and should be consistent across all architecture types, this one hasnt changed in a while.

@harp-intel harp-intel linked a pull request Feb 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants