HomeFreeBSD

arm64 hwpmc: Support restricting counters to user or kernel mode.

Description

arm64 hwpmc: Support restricting counters to user or kernel mode.

Support the "usr" and "os" qualifiers on arm64 events to restrict
event counting to either usermode or the kernel, respectively. If
neither qualifier is given, events are counted in both.

Reviewed by: emaste
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D34527

(cherry picked from commit 6bb7ba4aa180f667c1b558de1fc364f41bab57ce)

Details

Provenance
jhbAuthored on Mar 11 2022, 7:29 PM
Reviewer
emaste
Differential Revision
D34527: arm64 hwpmc: Support restricting counters to user or kernel mode.
Parents
rG8a8747f5c98a: aarch64: Add constants for fields in the PMEVTYPERn_EL0 event registers.
Branches
Unknown
Tags
Unknown