On Thu, 29 Apr 2021 10:32:08 +0530, Madhavan Srinivasan wrote:
> struct perf_event_attr supports exclude counting of idle task.
> This is sent to kernel via perf_event_attr.exclude_idle and
> in perf tool, user can use ":I" event modifier to enable this
> for specific event.
> 
> Monitor Mode Control Register 2 (MMCR2) SPR has control bits
> for each PMCs to freeze counting based on the Control Register
> CTRL[RUN] state. CTRL[RUN] is not set when idle task is
> running. Patch adds a check for event attr.exclude_idle to
> set MMCR2[FCnWAIT] bit.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/perf: Update MMCR2 to support event exclude_idle
      https://git.kernel.org/powerpc/c/5969e0c1c7e2132d8b2cf80168072b1195ddce46

cheers

Reply via email to