]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: Use hardware PMCs freezing on PMI on Intel v2+.
authorAlexander Motin <mav@FreeBSD.org>
Mon, 30 May 2022 13:07:30 +0000 (09:07 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 30 May 2022 13:17:34 +0000 (09:17 -0400)
commit81ffb45f02dac470cfeddb98f2e4af2d895fea4a
tree2574251786c0f5097061b913e3d4adcc05350204
parentefbe2af2ce5e444aa06d6d989c147ecea3f3120f
hwpmc: Use hardware PMCs freezing on PMI on Intel v2+.

Since version 2 Intel CPUs can freeze PMCs when intering PMI to reduce
PMI effects on collected statistics.  Since version 4 hardware supports
"streamlined" mechanism, not requiring IA_GLOBAL_CTRL MSR access.

MFC after: 1 month
sys/dev/hwpmc/hwpmc_core.c