Re: [PATCH v1 1/8] perf/x86: add support to mask counters from host

From: Andi Kleen
Date: Mon Nov 05 2018 - 13:20:19 EST



I ran into a similar problem with my PEBS virtualization patchkit.

My solution was: basically schedule as normal, but tell the scheduler to
force allocate a counter on a specific index. It can be done
only with a few lines of change in the scheduler code.

-Andi