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
F176567324: D60570.id189849.diff
Mon, Oct 19, 9:58 PM
F176549083: D60570.id189849.diff
Mon, Oct 19, 6:27 PM
F176491417: D60570.diff
Mon, Oct 19, 7:05 AM
F176483669: D60570.id189849.diff
Mon, Oct 19, 5:42 AM
F176465242: D60570.id189849.diff
Mon, Oct 19, 2:00 AM
F176463487: D60570.id189787.diff
Mon, Oct 19, 1:36 AM
Unknown Object (File)
Sun, Oct 18, 10:20 PM
Unknown Object (File)
Sun, Oct 18, 10:40 AM
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 77943
Build 74826: arc lint + arc unit