Page MenuHomeFreeBSD

hwpmc/amd: add LBR v2 sampling on the PerfMonV2 path
Needs ReviewPublic

Authored by afscoelho_gmail.com on Sat, Oct 10, 1:22 AM.
Tags
None
Referenced Files
F176274217: D60570.diff
Sat, Oct 17, 2:21 PM
Unknown Object (File)
Fri, Oct 16, 5:12 AM
Unknown Object (File)
Fri, Oct 16, 1:13 AM
Unknown Object (File)
Thu, Oct 15, 5:07 PM
Unknown Object (File)
Thu, Oct 15, 2:16 PM
Unknown Object (File)
Thu, Oct 15, 2:16 PM
Unknown Object (File)
Thu, Oct 15, 2:14 PM
Unknown Object (File)
Wed, Oct 14, 4:33 PM
Subscribers

Details

Reviewers
mhorne
gnn
ali_mashtizadeh.com
Group Reviewers
pmc
Summary

Read the branch records in the PMC interrupt and log them with the
sample. Clear the records on context switch and exec. Advertise
PMC_CAP_LBR.

Depends on D60569

Test Plan

Built amd64 GENERIC + hwpmc.ko, GENERIC without HWPMC_HOOKS, and arm64.
Ran tests/sys/pmc on AMD Zen 6 (LBR v2).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78201
Build 75084: arc lint + arc unit