SWDEV-429377 : Fixing kernel name truncation for plugins

Change-Id: I5875048d1773959fdd73cbff5498854e61b92af8
This commit is contained in:
gobhardw
2023-10-27 14:08:37 +05:30
committed by Arjun Raj Kuppala
parent 32907ff14c
commit 49bd09b46c
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -307,7 +307,7 @@ class file_plugin_t {
}
if (operation_name_c) ss << ",\"" << operation_name_c << "\"";
if (tracer_record.name && tracer_record.domain != ACTIVITY_DOMAIN_ROCTX) {
ss << ",\"" << rocprofiler::cxx_demangle(tracer_record.name) << "\"";
ss << ",\"" << rocprofiler::truncate_name(rocprofiler::cxx_demangle(tracer_record.name)) << "\"";
} else if (tracer_record.domain == ACTIVITY_DOMAIN_HIP_OPS) {
ss << ",";
}
@@ -379,7 +379,7 @@ class file_plugin_t {
<< std::to_string(profiler_record->kernel_properties.wave_size);
std::string kernel_name = "";
if (name_length > 1) {
kernel_name = rocprofiler::cxx_demangle(kernel_name_c);
kernel_name = rocprofiler::truncate_name(rocprofiler::cxx_demangle(kernel_name_c));
std::string key = "\"";
std::size_t found = kernel_name.rfind(key);
while (found != std::string::npos) {