SWDEV-359838 - Add a phase data pointer to the hip_api_data_t

To avoid using the thread local std::stack to remember the phase enter
timestamp, the tracer tool uses the phase data to store the timestamp.

Change-Id: I9e95637b41d6f0b2bd61016062ca07d6ba897652
Šī revīzija ir iekļauta:
Laurent Morichetti
2022-09-30 13:44:15 -07:00
vecāks b425e27230
revīzija 47a29c748a
2 mainīti faili ar 2 papildinājumiem un 0 dzēšanām
@@ -3123,6 +3123,7 @@ typedef struct hip_api_data_s {
hipStream_t stream; hipStream_t stream;
} hipWaitExternalSemaphoresAsync; } hipWaitExternalSemaphoresAsync;
} args; } args;
uint64_t *phase_data;
} hip_api_data_t; } hip_api_data_t;
// HIP API callbacks args data filling macros // HIP API callbacks args data filling macros
+1
Parādīt failu
@@ -474,6 +474,7 @@ def generate_prof_header(f, api_map, callback_ids, opts_map):
f.write(' } ' + name + ';\n') f.write(' } ' + name + ';\n')
f.write( f.write(
' } args;\n' + ' } args;\n' +
' uint64_t *phase_data;\n' +
'} hip_api_data_t;\n' '} hip_api_data_t;\n'
) )