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.

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 77943
Build 74826: arc lint + arc unit