From ae9c4f2ea460dede1e4b3bb423fc6552e6a8a20f Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 22 May 2018 12:08:05 -0500 Subject: [PATCH] adding dispatch_packet field to rocprofiler_callback_data_t Change-Id: I3cbe256130fa23dd24b094f27286d566ed339230 [ROCm/rocprofiler commit: b8fc3818de800fe3d444988a2e86040782030af9] --- projects/rocprofiler/inc/rocprofiler.h | 4 ++-- projects/rocprofiler/src/core/intercept_queue.h | 2 +- projects/rocprofiler/test/tool/metrics.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/rocprofiler/inc/rocprofiler.h b/projects/rocprofiler/inc/rocprofiler.h index 36396ba51c..2ea2814336 100644 --- a/projects/rocprofiler/inc/rocprofiler.h +++ b/projects/rocprofiler/inc/rocprofiler.h @@ -67,7 +67,7 @@ #include #define ROCPROFILER_VERSION_MAJOR 1 -#define ROCPROFILER_VERSION_MINOR 0 +#define ROCPROFILER_VERSION_MINOR 1 #ifdef __cplusplus extern "C" { @@ -237,7 +237,7 @@ typedef struct { uint32_t agent_index; // GPU index const hsa_queue_t* queue; // HSA queue uint64_t queue_index; // Index in the queue - uint64_t kernel_object; // Kernel object handle + const hsa_kernel_dispatch_packet_t* packet; // HSA dispatch packet const char* kernel_name; // Kernel name const rocprofiler_dispatch_record_t* record; // Dispatch record } rocprofiler_callback_data_t; diff --git a/projects/rocprofiler/src/core/intercept_queue.h b/projects/rocprofiler/src/core/intercept_queue.h index 5b546614d3..925ae3c469 100644 --- a/projects/rocprofiler/src/core/intercept_queue.h +++ b/projects/rocprofiler/src/core/intercept_queue.h @@ -101,7 +101,7 @@ class InterceptQueue { obj->agent_info_->dev_index, obj->queue_, user_que_idx, - dispatch_packet->kernel_object, + dispatch_packet, kernel_name, record}; hsa_status_t status = dispatch_callback_(&data, callback_data_, &group); diff --git a/projects/rocprofiler/test/tool/metrics.xml b/projects/rocprofiler/test/tool/metrics.xml index 8f0e28e5b4..916ae64d46 100644 --- a/projects/rocprofiler/test/tool/metrics.xml +++ b/projects/rocprofiler/test/tool/metrics.xml @@ -17,7 +17,7 @@ # FETCH_SIZE, kilobytes # The total kilobytes fetched from the video memory. This is measured with all extra fetches and any cache or memory effects taken into account. - # WRITE_SIZE + # WRITE_SIZE, kilobytes # The total kilobytes written to the video memory. This is measured with all extra fetches and any cache or memory effects taken into account. @@ -41,7 +41,7 @@ # FETCH_SIZE, kilobytes # The total kilobytes fetched from the video memory. This is measured with all extra fetches and any cache or memory effects taken into account. - # WRITE_SIZE + # WRITE_SIZE, kilobytes # The total kilobytes written to the video memory. This is measured with all extra fetches and any cache or memory effects taken into account.