Pull perf updates from Ingo Molnar: "The main kernel side changes in this cycle were: - Various Intel-PT updates and optimizations (Alexander Shishkin) - Prohibit kprobes on Xen/KVM emulate prefixes (Masami Hiramatsu) - Add support for LSM and SELinux checks to control access to the perf syscall (Joel Fernandes) - Misc other changes, optimizations, fixes and cleanups - see the shortlog for details. There were numerous tooling changes as well - 254 non-merge commits. Here are the main changes - too many to list in detail: - Enhancements to core tooling infrastructure, perf.data, libperf, libtraceevent, event parsing, vendor events, Intel PT, callchains, BPF support and instruction decoding. - There were updates to the following tools: perf annotate perf diff perf inject perf kvm perf list perf maps perf parse perf probe perf record perf report perf script perf stat perf test perf trace - And a lot of other changes: please see the shortlog and Git log for more details" * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (279 commits) perf parse: Fix potential memory leak when handling tracepoint errors perf probe: Fix spelling mistake "addrees" -> "address" libtraceevent: Fix memory leakage in copy_filter_type libtraceevent: Fix header installation perf intel-bts: Does not support AUX area sampling perf intel-pt: Add support for decoding AUX area samples perf intel-pt: Add support for recording AUX area samples perf pmu: When using default config, record which bits of config were changed by the user perf auxtrace: Add support for queuing AUX area samples perf session: Add facility to peek at all events perf auxtrace: Add support for dumping AUX area samples perf inject: Cut AUX area samples perf record: Add aux-sample-size config term perf record: Add support for AUX area sampling perf auxtrace: Add support for AUX area sample recording perf auxtrace: Move perf_evsel__find_pmu() perf record: Add a function to test for kernel support for AUX area sampling perf tools: Add kernel AUX area sampling definitions perf/core: Make the mlock accounting simple again perf report: Jump to symbol source view from total cycles view ...
Showing the changes to include/uapi/linux (1 of 297 files). Show all
Unified · Split
| @@ -141,8 +141,9 @@ enum perf_event_sample_format { · 140 unmodified lines | ||
| 141 | 141 | PERF_SAMPLE_TRANSACTION = 1U << 17, |
| 142 | 142 | PERF_SAMPLE_REGS_INTR = 1U << 18, |
| 143 | 143 | PERF_SAMPLE_PHYS_ADDR = 1U << 19, |
| 144 | + PERF_SAMPLE_AUX = 1U << 20, | |
| 144 | 145 | |
| 145 | − PERF_SAMPLE_MAX = 1U << 20, /* non-ABI */ | |
| 146 | + PERF_SAMPLE_MAX = 1U << 21, /* non-ABI */ | |
| 146 | 147 | |
| 147 | 148 | __PERF_SAMPLE_CALLCHAIN_EARLY = 1ULL << 63, /* non-ABI; internal use */ |
| 148 | 149 | }; |
| @@ -300,6 +301,7 @@ enum perf_event_read_format { · 151 unmodified lines | ||
| 300 | 301 | /* add: sample_stack_user */ |
| 301 | 302 | #define PERF_ATTR_SIZE_VER4 104 /* add: sample_regs_intr */ |
| 302 | 303 | #define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */ |
| 304 | +#define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */ | |
| 303 | 305 | |
| 304 | 306 | /* |
| 305 | 307 | * Hardware event_id to monitor via a performance monitoring event: |
| @@ -424,7 +426,9 @@ struct perf_event_attr { · 118 unmodified lines | ||
| 424 | 426 | */ |
| 425 | 427 | __u32 aux_watermark; |
| 426 | 428 | __u16 sample_max_stack; |
| 427 | − __u16 __reserved_2; /* align to __u64 */ | |
| 429 | + __u16 __reserved_2; | |
| 430 | + __u32 aux_sample_size; | |
| 431 | + __u32 __reserved_3; | |
| 428 | 432 | }; |
| 429 | 433 | |
| 430 | 434 | /* |
| @@ -864,6 +868,8 @@ enum perf_event_type { · 433 unmodified lines | ||
| 864 | 868 | * { u64 abi; # enum perf_sample_regs_abi |
| 865 | 869 | * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR |
| 866 | 870 | * { u64 phys_addr;} && PERF_SAMPLE_PHYS_ADDR |
| 871 | + * { u64 size; | |
| 872 | + * char data[size]; } && PERF_SAMPLE_AUX | |
| 867 | 873 | * }; |
| 868 | 874 | */ |
| 869 | 875 | PERF_RECORD_SAMPLE = 9, |