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


[ROCm/clr commit: 47a29c748a]
这个提交包含在:
Laurent Morichetti 于 2022-09-30 14:55:01 -07:00 提交
1 父节点 a7f33f9237
当前提交 08d7b38b0f
2 个文件已更改
+2

没有与搜索条件相匹配的文件

@@ -3123,6 +3123,7 @@ typedef struct hip_api_data_s {
hipStream_t stream;
} hipWaitExternalSemaphoresAsync;
} args;
uint64_t *phase_data;
} hip_api_data_t;
// HIP API callbacks args data filling macros
+1
查看文件
@@ -474,6 +474,7 @@ def generate_prof_header(f, api_map, callback_ids, opts_map):
f.write(' } ' + name + ';\n')
f.write(
' } args;\n' +
' uint64_t *phase_data;\n' +
'} hip_api_data_t;\n'
)