HomeFreeBSD

hwpmc_arm64: fill kern.hwpmc.cpuid

Description

hwpmc_arm64: fill kern.hwpmc.cpuid

This will be used to detect supported pmu events. The expected format is
the MIDR register with the revision and variant fields masked. See also:
lib/libpmc/pmu-events/arch/arm64/mapfile.csv.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30601

(cherry picked from commit 5867cccdc49df3e7eb3147d6516b488dd8384afe)

Details

Provenance
mhorneAuthored on Apr 1 2021, 1:19 PM
Differential Revision
D30601: hwpmc_arm64: fill kern.hwpmc.cpuid
Parents
rGa2d252f89fbc: hwpmc_arm64.c: fix return style
Branches
Unknown
Tags
Unknown