Files
Centos-kernel-stream-10/drivers/perf
Trevor Allison b09da4962a perf: arm_spe: Add support for filtering on data source
JIRA: https://redhat.atlassian.net/browse/RHEL-140195

upstream
========
commit e6a27290d8001538fec94e91ff8c7f956ee7e3e5
Author: James Clark <james.clark@linaro.org>
Date: Tue Nov 11 11:37:56 2025 +0000

description
===========
SPE_FEAT_FDS adds the ability to filter on the data source of packets.
Like the other existing filters, enable filtering with PMSFCR_EL1.FDS
when any of the filter bits are set.

Each bit position of the 64 bit filter maps to numerical data sources
0-63 described by bits[0:5] in the data source packet (although the full
range of data source is 16 bits so higher value data sources can't be
filtered on). The filter is an OR of all the filter bits, so for example
clearing filter bits 0 and 3 only includes packets from data sources 0
OR 3.

Invert the filter given by userspace so that the default value of 0 is
equivalent to including all values (no filtering). This allows us to
skip adding a new format bit to enable filtering and still support
excluding all data sources which would have been a filter value of 0 if
not for the inversion.

    Tested-by: Leo Yan <leo.yan@arm.com>
    Reviewed-by: Leo Yan <leo.yan@arm.com>
    Signed-off-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Will Deacon <will@kernel.org>

Signed-off-by: Trevor Allison <tallison@redhat.com>
2026-06-24 14:56:51 -04:00
..
2025-11-07 11:16:43 +01:00
2026-05-05 17:01:49 -04:00
2026-05-05 17:01:49 -04:00