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

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.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20180107160356.28203-8-jolsa@kernel.org
[ Update the tools/include/uapi/linux copy ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
972c1488 99e818cc

+12 -6
+6 -3
include/uapi/linux/perf_event.h
··· 612 612 */ 613 613 #define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12) 614 614 /* 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 618 621 */ 619 622 #define PERF_RECORD_MISC_MMAP_DATA (1 << 13) 620 623 #define PERF_RECORD_MISC_COMM_EXEC (1 << 13)
+6 -3
tools/include/uapi/linux/perf_event.h
··· 612 612 */ 613 613 #define PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT (1 << 12) 614 614 /* 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 618 621 */ 619 622 #define PERF_RECORD_MISC_MMAP_DATA (1 << 13) 620 623 #define PERF_RECORD_MISC_COMM_EXEC (1 << 13)