History

perf: Update PERF_RECORD_MISC_* comment for perf_event_header::misc bit 13

The perf_event_header::misc bit 13 is shared on different events and next patch is adding yet another bit 13 user. Updating the comment to make it more structured and clear which events use bit 13.

Jiri Olsa committed 8 years ago

Commit 972c1481 parent 99e818c2 files · +12 −6Browse files

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

Unified · Split

include/uapi/linux/perf_event.h+6−3
@@ -612,9 +612,12 @@ struct perf_event_mmap_page { · 611 unmodified lines
612612 */
613613 #define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12)
614614 /*
615− * PERF_RECORD_MISC_MMAP_DATA and PERF_RECORD_MISC_COMM_EXEC are used on
616− * different events so can reuse the same bit position.
617− * Ditto PERF_RECORD_MISC_SWITCH_OUT.
615+ * Following PERF_RECORD_MISC_* are used on different
616+ * events, so can reuse the same bit position:
617+ *
618+ * PERF_RECORD_MISC_MMAP_DATA - PERF_RECORD_MMAP* events
619+ * PERF_RECORD_MISC_COMM_EXEC - PERF_RECORD_COMM event
620+ * PERF_RECORD_MISC_SWITCH_OUT - PERF_RECORD_SWITCH* events
618621 */
619622 #define PERF_RECORD_MISC_MMAP_DATA (1 << 13)
620623 #define PERF_RECORD_MISC_COMM_EXEC (1 << 13)