adding post initialization of HIP API pointer args to print returned by reference values

Change-Id: Ifb73434d7ab9cd2dfe8811fc0cd013b78f4e12f2


[ROCm/roctracer commit: a83acdae3a]
This commit is contained in:
Evgeny
2020-06-16 10:56:57 -05:00
committed by Evgeny Shcherbakov
parent 8f211fc9b0
commit 3e2239b099
@@ -372,6 +372,9 @@ void hip_api_callback(
if (data->phase == ACTIVITY_API_PHASE_ENTER) {
hip_begin_timestamp = timer->timestamp_fn_ns();
} else {
// Post onit of HIP APU args
hipApiArgsInit((hip_api_id_t)cid, const_cast<hip_api_data_t*>(data));
const timestamp_t end_timestamp = timer->timestamp_fn_ns();
hip_api_trace_entry_t* entry = hip_api_trace_buffer.GetEntry();
entry->valid = roctracer::TRACE_ENTRY_COMPL;