History

Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

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 ...

Linus Torvalds committed 6 years ago

Commit 3f59dbc2 parents df28204 ceb9e77297 files · +32874 −23281Browse files

Showing the changes to include/uapi/linux (1 of 297 files). Show all

Unified · Split

include/uapi/linux/perf_event.h+8−2
@@ -141,8 +141,9 @@ enum perf_event_sample_format { · 140 unmodified lines
141141 PERF_SAMPLE_TRANSACTION = 1U << 17,
142142 PERF_SAMPLE_REGS_INTR = 1U << 18,
143143 PERF_SAMPLE_PHYS_ADDR = 1U << 19,
144+ PERF_SAMPLE_AUX = 1U << 20,
144145
145− PERF_SAMPLE_MAX = 1U << 20, /* non-ABI */
146+ PERF_SAMPLE_MAX = 1U << 21, /* non-ABI */
146147
147148 __PERF_SAMPLE_CALLCHAIN_EARLY = 1ULL << 63, /* non-ABI; internal use */
148149 };
@@ -300,6 +301,7 @@ enum perf_event_read_format { · 151 unmodified lines
300301 /* add: sample_stack_user */
301302 #define PERF_ATTR_SIZE_VER4 104 /* add: sample_regs_intr */
302303 #define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */
304+#define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */
303305
304306 /*
305307 * Hardware event_id to monitor via a performance monitoring event:
@@ -424,7 +426,9 @@ struct perf_event_attr { · 118 unmodified lines
424426 */
425427 __u32 aux_watermark;
426428 __u16 sample_max_stack;
427− __u16 __reserved_2; /* align to __u64 */
429+ __u16 __reserved_2;
430+ __u32 aux_sample_size;
431+ __u32 __reserved_3;
428432 };
429433
430434 /*
@@ -864,6 +868,8 @@ enum perf_event_type { · 433 unmodified lines
864868 * { u64 abi; # enum perf_sample_regs_abi
865869 * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR
866870 * { u64 phys_addr;} && PERF_SAMPLE_PHYS_ADDR
871+ * { u64 size;
872+ * char data[size]; } && PERF_SAMPLE_AUX
867873 * };
868874 */
869875 PERF_RECORD_SAMPLE = 9,