Re: [PATCH 4/8] drivers/perf: hisi: Extract the event filter check of L3C PMU
From: Jonathan Cameron
Date: Thu Jul 31 2025 - 08:21:08 EST
On Tue, 29 Jul 2025 23:38:19 +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>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>