Re: [PATCH v2 4/9] drivers/perf: hisi: Extract the event filter check of L3C PMU
From: Jonathan Cameron
Date: Tue Aug 26 2025 - 09:07:05 EST
On Thu, 21 Aug 2025 21:50:44 +0800
Yushan Wang <wangyushan12@xxxxxxxxxx> wrote:
> From: Yicong Yang <yangyicong@xxxxxxxxxxxxx>
>
> L3C PMU has 4 filter options which are sharing perf_event_attr::config1.
> Driver will check config1 to see whether a certain event has a filter
> setting. It'll be incorrect if we make use of other bits in config1
> for non-filter options. So check whether each filter options are set
> directly in a separate function instead.
>
> Signed-off-by: Yicong Yang <yangyicong@xxxxxxxxxxxxx>
> Signed-off-by: Yushan Wang <wangyushan12@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>