Fixing issues caused by the plugin patches

- Multithreaded Applications and plugin destruction
- Fixing Async-copy trace in file plugin
- Adding the assert checkups for every trace buffer flush function

Change-Id: I96e096fd7ee2604931200a0b446edb5ce49959dd


[ROCm/roctracer commit: 4cd7497a87]
这个提交包含在:
Ammar ELWazir
2022-08-18 21:46:58 -05:00
提交者 Ammar Elwazir
父节点 dfc856d164
当前提交 699d17b733
修改 2 个文件,包含 9 行新增8 行删除
+1 -1
查看文件
@@ -322,7 +322,7 @@ class file_plugin_t {
output_file = get_output_file(ACTIVITY_DOMAIN_HSA_OPS, begin->op);
if (begin->op == HSA_OP_ID_COPY) {
*output_file << std::dec << begin->begin_ns << ":" << begin->end_ns
<< " async-copy:" << begin->correlation_id << " " << GetPid() << std::endl;
<< " async-copy:" << begin->correlation_id << ":" << GetPid() << std::endl;
break;
} else if (begin->op == HSA_OP_ID_RESERVED1) {
*output_file << std::dec << begin->pc_sample.se << " " << begin->pc_sample.cycle << " "