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

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
rG456d57a66d54: aarch64: Add constants for fields in the PMEVTYPERn_EL0 event registers.
Branches
Unknown
Tags
Unknown