Skip to content

Commit 09519ec

Browse files
robherringwilldeacon
authored andcommitted
perf: Add perf_event_attr::config3
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 <james.clark@arm.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220825-arm-spe-v8-7-v4-7-327f860daf28@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 7f49b03 commit 09519ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/uapi/linux/perf_event.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ enum perf_event_read_format {
374374
#define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */
375375
#define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */
376376
#define PERF_ATTR_SIZE_VER7 128 /* add: sig_data */
377+
#define PERF_ATTR_SIZE_VER8 136 /* add: config3 */
377378

378379
/*
379380
* Hardware event_id to monitor via a performance monitoring event:
@@ -515,6 +516,8 @@ struct perf_event_attr {
515516
* truncated accordingly on 32 bit architectures.
516517
*/
517518
__u64 sig_data;
519+
520+
__u64 config3; /* extension of config2 */
518521
};
519522

520523
/*

0 commit comments

Comments
 (0)