Define PERF_AUX_FLAG_GTRACE_FORMAT_CORESIGHT for the gtrace format which reports whether the data has been wrapped in CoreSight frame formatting by a CoreSight sink.
Signed-off-by: Zane Leung liangzhen@linux.spacemit.com --- include/uapi/linux/perf_event.h | 1 + tools/include/uapi/linux/perf_event.h | 1 + 2 files changed, 2 insertions(+)
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 2ac00a409a04..9d9ed2adc1d4 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1315,6 +1315,7 @@ enum perf_callchain_context { #define PERF_AUX_FLAG_GTRACE_FORMAT_UNKNOWN 0x0000 #define PERF_AUX_FLAG_GTRACE_FORMAT_ETRACE 0x0100 /* RISC-V E-trace format */ #define PERF_AUX_FLAG_GTRACE_FORMAT_NTRACE 0x0200 /* RISC-V N-Trace format */ +#define PERF_AUX_FLAG_GTRACE_FORMAT_CORESIGHT 0x0300 /* Trace with CoreSight formatted frames */
#define PERF_FLAG_FD_NO_GROUP (1UL << 0) #define PERF_FLAG_FD_OUTPUT (1UL << 1) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 2ac00a409a04..9d9ed2adc1d4 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -1315,6 +1315,7 @@ enum perf_callchain_context { #define PERF_AUX_FLAG_GTRACE_FORMAT_UNKNOWN 0x0000 #define PERF_AUX_FLAG_GTRACE_FORMAT_ETRACE 0x0100 /* RISC-V E-trace format */ #define PERF_AUX_FLAG_GTRACE_FORMAT_NTRACE 0x0200 /* RISC-V N-Trace format */ +#define PERF_AUX_FLAG_GTRACE_FORMAT_CORESIGHT 0x0300 /* Trace with CoreSight formatted frames */
#define PERF_FLAG_FD_NO_GROUP (1UL << 0) #define PERF_FLAG_FD_OUTPUT (1UL << 1)