Page MenuHomeFreeBSD

hwpmc: add the LBR allocation policy
Needs ReviewPublic

Authored by afscoelho_gmail.com on Sat, Oct 10, 1:22 AM.
Tags
None
Referenced Files
F175349672: D60568.id189323.diff
Sat, Oct 10, 5:06 AM
F175343283: D60568.diff
Sat, Oct 10, 3:46 AM
F175341242: D60568.diff
Sat, Oct 10, 3:22 AM
Subscribers

Details

Reviewers
mhorne
gnn
ali_mashtizadeh.com
Group Reviewers
pmc
Summary

Kernel branch records leak kernel addresses. If an LBR PMC can record
kernel branches, require PRIV_PMC_SYSTEM and refuse it in a jail.
User-only LBR keeps the normal rules.

LBR samples need a log file, so require one.

Depends on D60567

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 77941
Build 74824: arc lint + arc unit