Re: [PATCH v1 00/13] perf/x86/amd: Add AMD Fam19h Branch Sampling support

From: Peter Zijlstra
Date: Thu Sep 09 2021 - 04:56:15 EST


On Thu, Sep 09, 2021 at 12:56:47AM -0700, Stephane Eranian wrote:
> This patch series adds support for the AMD Fam19h 16-deep branch sampling
> feature as described in the AMD PPR Fam19h Model 01h Revision B1 section 2.1.13.

Yay..

> BRS interacts with the NMI interrupt as well. Because enabling BRS is expensive,
> it is only activated after P event occurrences, where P is the desired sampling period.
> At P occurrences of the event, the counter overflows, the CPU catches the NMI interrupt,
> activates BRS for 16 branches until it saturates, and then delivers the NMI to the kernel.

WTF... ?!? Srsly? You're joking right?

Also, can you please fix you MUA to wrap at 78 chars like normal people?