]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf/uapi: Fix PERF_RECORD_SAMPLE comments in <uapi/linux/perf_event.h>
authorIan Rogers <irogers@google.com>
Wed, 21 May 2025 22:15:28 +0000 (15:15 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2025 08:01:34 +0000 (10:01 +0200)
AAUX data for PERF_SAMPLE_AUX appears last. PERF_SAMPLE_CGROUP is
missing from the comment.

This makes the <uapi/linux/perf_event.h> comment match that in the
perf_event_open man page.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-perf-users@vger.kernel.org
Link: https://lore.kernel.org/r/20250521221529.2547099-1-irogers@google.com
include/uapi/linux/perf_event.h
tools/include/uapi/linux/perf_event.h

index 5fc753c23734dfc4bf944b9edda802dca0d5deb9..b2722dae6f1ef88c272997264994ab35a02fa3b1 100644 (file)
@@ -1035,10 +1035,11 @@ enum perf_event_type {
         *      { u64                   abi; # enum perf_sample_regs_abi
         *        u64                   regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR
         *      { u64                   phys_addr;} && PERF_SAMPLE_PHYS_ADDR
-        *      { u64                   size;
-        *        char                  data[size]; } && PERF_SAMPLE_AUX
+        *      { u64                   cgroup;} && PERF_SAMPLE_CGROUP
         *      { u64                   data_page_size;} && PERF_SAMPLE_DATA_PAGE_SIZE
         *      { u64                   code_page_size;} && PERF_SAMPLE_CODE_PAGE_SIZE
+        *      { u64                   size;
+        *        char                  data[size]; } && PERF_SAMPLE_AUX
         * };
         */
        PERF_RECORD_SAMPLE                      = 9,
index 5fc753c23734dfc4bf944b9edda802dca0d5deb9..b2722dae6f1ef88c272997264994ab35a02fa3b1 100644 (file)
@@ -1035,10 +1035,11 @@ enum perf_event_type {
         *      { u64                   abi; # enum perf_sample_regs_abi
         *        u64                   regs[weight(mask)]; } && PERF_SAMPLE_REGS_INTR
         *      { u64                   phys_addr;} && PERF_SAMPLE_PHYS_ADDR
-        *      { u64                   size;
-        *        char                  data[size]; } && PERF_SAMPLE_AUX
+        *      { u64                   cgroup;} && PERF_SAMPLE_CGROUP
         *      { u64                   data_page_size;} && PERF_SAMPLE_DATA_PAGE_SIZE
         *      { u64                   code_page_size;} && PERF_SAMPLE_CODE_PAGE_SIZE
+        *      { u64                   size;
+        *        char                  data[size]; } && PERF_SAMPLE_AUX
         * };
         */
        PERF_RECORD_SAMPLE                      = 9,