SWDEV-430956: resolving the issue with V1 script reading long kernel names

Change-Id: I30069e28dbcc8edf2b4b41a8afd6ca4014427da7
This commit is contained in:
Ammar ELWazir
2023-11-08 16:33:01 +00:00
parent dbfe955d57
commit a7d8bd521c
+1 -1
View File
@@ -318,7 +318,7 @@ class file_plugin_t {
ss << std::dec << begin->begin_ns << ":" << begin->end_ns << " " << begin->device_id
<< ":" << begin->queue_id << " "
<< ((begin->op == HIP_OP_ID_DISPATCH && begin->kernel_name != nullptr)
? cxx_demangle(begin->kernel_name)
? truncate_name(cxx_demangle(begin->kernel_name))
: name)
<< ":" << begin->correlation_id << ":" << GetPid() << "\n";
*output_file << ss.str();