]> Git Repo - linux.git/commitdiff
perf: Add perf_event_attr::config3
authorRob Herring <[email protected]>
Mon, 9 Jan 2023 19:26:23 +0000 (13:26 -0600)
committerWill Deacon <[email protected]>
Tue, 7 Feb 2023 11:52:00 +0000 (11:52 +0000)
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.

Tested-by: James Clark <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
include/uapi/linux/perf_event.h

index ccb7f5dad59be96b2cba0011717759ff8e67c640..37675437b76860ae4c3bef6a35e0eded9c25d55b 100644 (file)
@@ -374,6 +374,7 @@ enum perf_event_read_format {
 #define PERF_ATTR_SIZE_VER5    112     /* add: aux_watermark */
 #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 */
 
 /*
  * Hardware event_id to monitor via a performance monitoring event:
@@ -515,6 +516,8 @@ struct perf_event_attr {
         * truncated accordingly on 32 bit architectures.
         */
        __u64   sig_data;
+
+       __u64   config3; /* extension of config2 */
 };
 
 /*
This page took 0.065508 seconds and 4 git commands to generate.