History

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.

James Clark committed 1 year ago

Commit cbbfba41 parent 11abb4e1 file · +2 −0Browse files

Unified · Split

include/uapi/linux/perf_event.h+2−0
@@ -382,6 +382,7 @@ enum perf_event_read_format { · 381 unmodified lines
382#define PERF_ATTR_SIZE_VER6 120 /* Add: aux_sample_size */382#define PERF_ATTR_SIZE_VER6 120 /* Add: aux_sample_size */
383#define PERF_ATTR_SIZE_VER7 128 /* Add: sig_data */383#define PERF_ATTR_SIZE_VER7 128 /* Add: sig_data */
384#define PERF_ATTR_SIZE_VER8 136 /* Add: config3 */384#define PERF_ATTR_SIZE_VER8 136 /* Add: config3 */
385#define PERF_ATTR_SIZE_VER9 144 /* add: config4 */
385 386
386/*387/*
387 * 'struct perf_event_attr' contains various attributes that define388 * 'struct perf_event_attr' contains various attributes that define
@@ -543,6 +544,7 @@ struct perf_event_attr { · 155 unmodified lines
543 __u64 sig_data;544 __u64 sig_data;
544 545
545 __u64 config3; /* extension of config2 */546 __u64 config3; /* extension of config2 */
547 __u64 config4; /* extension of config3 */
546};548};
547 549
548/*550/*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t