From 44c150c7d481c16163d3996fbf7fc9d1554109a7 Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Wed, 20 Dec 2023 12:02:58 -0300 Subject: [PATCH] SWDEV-437776: Removed codeobj ATT error message for memory protocol Change-Id: Iabe191edf5446a03afc4e1c81e5cf906476e5fcb [ROCm/rocprofiler commit: 7b98e43276d16b7373c36169f638acf9264187c1] --- projects/rocprofiler/plugin/att/code_printing.cpp | 7 +++++-- projects/rocprofiler/plugin/att/stitch.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler/plugin/att/code_printing.cpp b/projects/rocprofiler/plugin/att/code_printing.cpp index 74b6d08514..5708c3b913 100644 --- a/projects/rocprofiler/plugin/att/code_printing.cpp +++ b/projects/rocprofiler/plugin/att/code_printing.cpp @@ -56,12 +56,15 @@ #define C_API_END(returndata) \ } catch (std::exception& e) \ { \ - std::cerr << "Codeobj API lookup error: " << e.what() << std::endl; \ + std::string s = e.what(); \ + if (s.find("memory protocol not supported!") == std::string::npos) \ + std::cerr << "Codeobj API lookup: " << e.what() << std::endl; \ return returndata; \ } \ catch (std::string& s) \ { \ - std::cerr << "Codeobj API lookup error: " << s << std::endl; \ + if (s.find("memory protocol not supported!") == std::string::npos) \ + std::cerr << "Codeobj API lookup: " << s << std::endl; \ return returndata; \ } \ catch (...) \ diff --git a/projects/rocprofiler/plugin/att/stitch.py b/projects/rocprofiler/plugin/att/stitch.py index e51097ebb2..73a3149a01 100644 --- a/projects/rocprofiler/plugin/att/stitch.py +++ b/projects/rocprofiler/plugin/att/stitch.py @@ -540,13 +540,13 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice): print('WARNING: Parsing terminated at:', as_line) break - if matched or as_line[1] != DONT_KNOW or 's_barrier' in as_line[0]: + if matched or as_line[1] != DONT_KNOW: if matched: inst.asmline = reverse_map[line] result.append(inst) i += 1 num_failed_stitches = 0 - elif inst.type == IMMED and line != next and (not bGFX9 or 's_barrier' in as_line[0]): + elif not bGFX9 and inst.type == IMMED and line != next: skipped_immed += 1 inst.asmline = reverse_map[line] result.append(inst)