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
Tento commit je obsažen v:
Ammar ELWazir
2022-08-18 21:46:58 -05:00
odevzdal Ammar Elwazir
rodič 753d543022
revize 4cd7497a87
2 změnil soubory, kde provedl 9 přidání a 8 odebrání
+1 -1
Zobrazit soubor
@@ -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 << " "