Skip to content

Commit cbbfba4

Browse files
james-c-linarowilldeacon
authored andcommitted
perf: Add perf_event_attr::config4
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>
1 parent 11abb4e commit cbbfba4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/uapi/linux/perf_event.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ enum perf_event_read_format {
382382
#define PERF_ATTR_SIZE_VER6 120 /* Add: aux_sample_size */
383383
#define PERF_ATTR_SIZE_VER7 128 /* Add: sig_data */
384384
#define PERF_ATTR_SIZE_VER8 136 /* Add: config3 */
385+
#define PERF_ATTR_SIZE_VER9 144 /* add: config4 */
385386

386387
/*
387388
* 'struct perf_event_attr' contains various attributes that define
@@ -543,6 +544,7 @@ struct perf_event_attr {
543544
__u64 sig_data;
544545

545546
__u64 config3; /* extension of config2 */
547+
__u64 config4; /* extension of config3 */
546548
};
547549

548550
/*

0 commit comments

Comments
 (0)