Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

James Clark and committed by
Will Deacon
cbbfba48 11abb4e8

+2
+2
include/uapi/linux/perf_event.h
··· 382 382 #define PERF_ATTR_SIZE_VER6 120 /* Add: aux_sample_size */ 383 383 #define PERF_ATTR_SIZE_VER7 128 /* Add: sig_data */ 384 384 #define PERF_ATTR_SIZE_VER8 136 /* Add: config3 */ 385 + #define PERF_ATTR_SIZE_VER9 144 /* add: config4 */ 385 386 386 387 /* 387 388 * 'struct perf_event_attr' contains various attributes that define ··· 544 543 __u64 sig_data; 545 544 546 545 __u64 config3; /* extension of config2 */ 546 + __u64 config4; /* extension of config3 */ 547 547 }; 548 548 549 549 /*