Page MenuHomeFreeBSD

Fix Sandy Bridge+ hwpmc branch counters
ClosedPublic

Authored by rstone on Jan 22 2015, 4:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 1:59 PM
Unknown Object (File)
Oct 1 2024, 12:17 PM
Unknown Object (File)
Sep 18 2024, 4:18 PM
Unknown Object (File)
Sep 7 2024, 4:01 PM
Unknown Object (File)
Aug 29 2024, 4:07 PM
Unknown Object (File)
Aug 29 2024, 4:07 PM
Unknown Object (File)
Aug 29 2024, 3:45 PM
Unknown Object (File)
Aug 8 2024, 10:26 PM

Details

Reviewers
joe-thestackframe.org
Group Reviewers
pmc
Summary

On Sandy Bridge and later, to count branch-related events you
have to or together a mask indicating the type of branch
instruction to count (e.g. direct jump, branch, etc) and a bits
indicating whether to count taken and not-taken branches. The
current counter definitions where defining this bits individually,
so the counters never worked and always just counted 0.

Fix the counter definitions to instead contain the proper
combination of masks. Also update the man pages to reflect the
new counters.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rstone retitled this revision from to Fix Sandy Bridge+ hwpmc branch counters.
rstone edited the test plan for this revision. (Show Details)
rstone updated this object.

Verified changes with Intel documentation. Looks good.

This revision is now accepted and ready to land.Mar 9 2015, 6:20 AM