HomeFreeBSD

hwpmc: Increase thread priority while iterating CPUs.

Description

hwpmc: Increase thread priority while iterating CPUs.

This allows to profile already running high-priority threads, that
otherwise by blocking thread migration to respective CPUs blocked PMC
management, i.e. profiling could start only when workload completed.

While there, return the thread to its original CPU after iterating
the list. Otherwise all threads using PMC end up on the last CPU.

MFC after: 1 month

Details

Provenance
mavAuthored on Jun 7 2022, 2:36 AM
Parents
rG8cdb6b2dd787: alc: force maximum payload size to 128 bytes for AR816X/AR817x
Branches
Unknown
Tags
Unknown