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)
Fri, Mar 22, 5:07 PM
Unknown Object (File)
Dec 23 2023, 11:56 AM
Unknown Object (File)
Dec 20 2023, 12:26 AM
Unknown Object (File)
Dec 10 2023, 7:19 AM
Unknown Object (File)
Dec 10 2023, 4:40 AM
Unknown Object (File)
Nov 7 2023, 9:28 PM
Unknown Object (File)
Nov 7 2023, 2:08 PM
Unknown Object (File)
Oct 16 2023, 9:40 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