Re: [PATCH RFC v1 2/3] perf: Add perf_event_attr::config3

From: Rob Herring
Date: Wed Aug 31 2022 - 15:06:59 EST


On Thu, Aug 25, 2022 at 1:08 PM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> Arm SPEv1.2 adds another 64-bits of event filtering control. As the
> existing perf_event_attr::configN fields are all used up for SPE PMU, an
> additional field is needed. Add a new 'config3' field.

In testing this, just exposing 'config3' in the format attributes
causes the SPE PMU to be disabled. So we can't add this without
breaking existing perf. Shouldn't perf just skip any format fields it
doesn't know about?

Rob