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

Request to add branch misprediction ratio on Intel #185

Open
hsane-dev opened this issue Jan 29, 2025 · 2 comments
Open

Request to add branch misprediction ratio on Intel #185

hsane-dev opened this issue Jan 29, 2025 · 2 comments
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.

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

No branches or pull requests

2 participants