]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: Increase thread priority while iterating CPUs.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 7 Jun 2022 02:36:16 +0000 (22:36 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 7 Jun 2022 02:51:01 +0000 (22:51 -0400)
commiteff9ee7c0c8e1fe782d6c01a29bb23224b02a847
treeb7e85ecaf6c9a8a2e8d3f791aaba704be1ca8926
parent8cdb6b2dd78793628d7c36198598c85741e44119
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
sys/dev/hwpmc/hwpmc_logging.c
sys/dev/hwpmc/hwpmc_mod.c
sys/sys/pmc.h