gpu: nvgpu: support cpu unix timestamps for cpu-gpu correlation

This patch extends the CPU-GPU query interface to also support
CPU UNIX-based timestamps.

Bug 4059666

Change-Id: Iecb937df38d3913559499fed1027a7157ad8d151
Signed-off-by: Martin Radev <mradev@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2973572
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Martin Radev
2023-09-04 14:14:47 +03:00
committed by mobile promotions
parent b426d710a2
commit 22e1608e72
6 changed files with 56 additions and 8 deletions

View File

@@ -684,6 +684,7 @@ struct nvgpu_gpu_get_buffer_info_args {
#define NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_MAX_COUNT 16
#define NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_SRC_ID_TSC 1
#define NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_SRC_ID_OSTIME 2
struct nvgpu_gpu_get_cpu_time_correlation_sample {
/* gpu timestamp value */