From ab94b378ae7c0a5509387e7dc985f1ee48cc13ff Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Wed, 8 Mar 2023 03:10:40 +0000 Subject: [PATCH] SWDEV-373784: Fixed hip/hsa traces not to include roctx tags Change-Id: I0ffbac3a313dbd9867a85b7cea0c92fe0b9ca0b9 --- plugin/file/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/file/file.cpp b/plugin/file/file.cpp index f75a85ab56..8a09da8faf 100644 --- a/plugin/file/file.cpp +++ b/plugin/file/file.cpp @@ -284,8 +284,8 @@ class file_plugin_t { if (tracer_record.domain != ACTIVITY_DOMAIN_ROCTX) *output_file << "), End(" << tracer_record.timestamps.end.value; *output_file << "), Correlation ID( " << tracer_record.correlation_id.value << ")"; - if (roctx_id >= 0) *output_file << ", ROCTX ID(" << roctx_id << ")"; - if (roctx_message.size() > 1) *output_file << ", ROCTX Message(" << roctx_message << ")"; + if (tracer_record.domain == ACTIVITY_DOMAIN_ROCTX && roctx_id >= 0) *output_file << ", ROCTX ID(" << roctx_id << ")"; + if (tracer_record.domain == ACTIVITY_DOMAIN_ROCTX && roctx_message.size() > 1) *output_file << ", ROCTX Message(" << roctx_message << ")"; if (function_name.size() > 1) *output_file << ", Function(" << function_name << ")"; if (kernel_name.size() > 1) *output_file << ", Kernel Name(" << kernel_name.c_str() << ")"; *output_file << std::endl;