From 6e44f66b704c7fd41dcf2944b8132c0140f5cf28 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Wed, 30 Dec 2020 02:02:32 +0300 Subject: misc: tegra-profiler: add unique identifier Add unique identifier seqid (sequence number) for samples. Bug 3216659 Signed-off-by: Igor Nabirushkin Change-Id: I84b595f976f1f1955ecb278ababaf45591cdf5e0 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2464500 (cherry picked from commit ec284fc0b7b94871565c612358ea9e78e9ae4731) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2469351 Reviewed-by: Roman Rybalko Reviewed-by: Bibek Basu Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- include/uapi/linux/tegra_profiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/uapi') diff --git a/include/uapi/linux/tegra_profiler.h b/include/uapi/linux/tegra_profiler.h index d8807e637..bfa39e566 100644 --- a/include/uapi/linux/tegra_profiler.h +++ b/include/uapi/linux/tegra_profiler.h @@ -20,7 +20,7 @@ #include #include -#define QUADD_SAMPLES_VERSION 48 +#define QUADD_SAMPLES_VERSION 49 #define QUADD_IO_VERSION 28 #define QUADD_IO_VERSION_DYNAMIC_RB 5 @@ -78,6 +78,7 @@ #define QUADD_SAMPLE_VERSION_PCLK_SEND_CHANGES 46 #define QUADD_SAMPLE_VERSION_COMM_SAMPLES 47 #define QUADD_SAMPLE_VERSION_UNCORE_EVENTS 48 +#define QUADD_SAMPLE_VERSION_SEQID 49 #define QUADD_MMAP_HEADER_VERSION 1 @@ -422,6 +423,7 @@ struct quadd_header_data { struct quadd_record_data { __u8 record_type; __u16 extra_size; + __u32 seqid; /* sample: it should be the biggest size */ union { -- cgit v1.2.2