]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf: Add perf_event_attr::config4
authorJames Clark <james.clark@linaro.org>
Tue, 11 Nov 2025 11:37:55 +0000 (11:37 +0000)
committerWill Deacon <will@kernel.org>
Mon, 24 Nov 2025 15:59:18 +0000 (15:59 +0000)
Arm FEAT_SPE_FDS adds the ability to filter on the data source of a
packet using 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 'config4' field.

Reviewed-by: Leo Yan <leo.yan@arm.com>
Tested-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
include/uapi/linux/perf_event.h

index 78a362b8002776e5ce83a0d7816601638c61ecc6..0d0ed85ad8cb348d5d655a9e5177b5ea2f4556c6 100644 (file)
@@ -382,6 +382,7 @@ enum perf_event_read_format {
 #define PERF_ATTR_SIZE_VER6                    120     /* Add: aux_sample_size */
 #define PERF_ATTR_SIZE_VER7                    128     /* Add: sig_data */
 #define PERF_ATTR_SIZE_VER8                    136     /* Add: config3 */
+#define PERF_ATTR_SIZE_VER9                    144     /* add: config4 */
 
 /*
  * 'struct perf_event_attr' contains various attributes that define
@@ -543,6 +544,7 @@ struct perf_event_attr {
        __u64   sig_data;
 
        __u64   config3; /* extension of config2 */
+       __u64   config4; /* extension of config3 */
 };
 
 /*