diff options
| author | Andre Silva <andasilv@amd.com> | 2026-09-28 19:07:22 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2026-09-28 19:23:34 +0000 |
| commit | 9d30640105900a72437380636f70dd1872ca9e22 (patch) | |
| tree | e0ee112625f29bc0c09fbbf83b9a79058a64f5e0 /cmd/ztest.c | |
| parent | 34b00ed041a49eecc85b9a91748145ada14d83c5 (diff) | |
Add support for AMD PerfMonV2 (Family 19h+) core counters, which need
both the per-counter EVSEL enable bit and the global GLOBAL_CTL bit set
to count. Detects PerfMonV2 at init and switches to v2-specific
start/stop/interrupt handlers; older CPUs and L3/DF counters keep using
the classic path unchanged.
Adds a read-only sysctl, kern.hwpmc.amd_perfmon_v2, to report which path
is active.
Signed-off-by: Andre Silva <andasilv@amd.com>
Reviewed by: Ali Mashtizadeh <ali@mashtizadeh.com>
Sponsored by: AMD
Differential Revision: https://reviews.freebsd.org/D58256
Diffstat (limited to 'cmd/ztest.c')
0 files changed, 0 insertions, 0 deletions
