SWDEV-429377 : Fixing kernel name truncation for plugins

Change-Id: I5875048d1773959fdd73cbff5498854e61b92af8


[ROCm/rocprofiler commit: 49bd09b46c]
此提交包含在:
gobhardw authored and Arjun Raj Kuppala committed 2023-10-30 10:52:31 -04:00
1 父節點 7f9ec63c49
當前提交 7aaf49a641
4 file changed
+7 -7

No files matched your search

+2 -2
查看文件
@@ -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) {