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
F176384224: D60570.id189849.diff
Sun, Oct 18, 10:40 AM
F176333101: D60570.id189787.diff
Sun, Oct 18, 12:17 AM
Unknown Object (File)
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
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 78145
Build 75028: arc lint + arc unit