Re: [PATCH RFC v1 2/3] perf: Add perf_event_attr::config3
From: Arnaldo Carvalho de Melo <hidden>
Date: 2022-08-31 20:07:39
Also in:
linux-perf-users, lkml
From: Arnaldo Carvalho de Melo <hidden>
Date: 2022-08-31 20:07:39
Also in:
linux-perf-users, lkml
On August 31, 2022 4:06:40 PM GMT-03:00, Rob Herring [off-list ref] wrote:
On Thu, Aug 25, 2022 at 1:08 PM Rob Herring [off-list ref] wrote:quoted
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?
Something it doesn't know about, even more at the main perf_event_attr level, may preclude it to grok new records. "May" is the key word, as perf_event_hdr has a size field, maybe sometimes it's possible to do as you say. If you're interested propose patches to make perf ignore things when possible. - Arnaldo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel