From 3cca2ccb9f1fa005a14c3ea35381aa3e2fe008cf Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Thu, 25 Jan 2024 19:56:15 -0300 Subject: [PATCH] SWDEV-443217: Fixing stitch.py for PCINFO and enabling filemode in att.py Change-Id: I85744bc9610f9f224d1ce7bb5d5232ff36fc5f6e [ROCm/rocprofiler commit: c7946c4f26006842b0d3dc41f9e9b9e588039acf] --- projects/rocprofiler/plugin/att/att.py | 3 +-- projects/rocprofiler/plugin/att/stitch.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/rocprofiler/plugin/att/att.py b/projects/rocprofiler/plugin/att/att.py index 738bba871d..69495bddf3 100755 --- a/projects/rocprofiler/plugin/att/att.py +++ b/projects/rocprofiler/plugin/att/att.py @@ -552,8 +552,7 @@ if __name__ == "__main__": if gfxv is None: continue if CSV_MODE == False and ftrace == 0: - print('Error: Only CSV mode is available for this version') - assert False + print('Generating occupancy information') for id, addr in enumerate(addrs): kernel_addr[id] = addr diff --git a/projects/rocprofiler/plugin/att/stitch.py b/projects/rocprofiler/plugin/att/stitch.py index cc558b5fe0..7891ea116e 100644 --- a/projects/rocprofiler/plugin/att/stitch.py +++ b/projects/rocprofiler/plugin/att/stitch.py @@ -334,7 +334,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice): if bIsAuto: try: firstinst = insts[0] - insts = insts[1:] if firstinst.type != PCINFO: print('Warning: Waves without PCINFO') @@ -347,7 +346,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice): watchlist.addsymbol(firstinst.cycles) line = firstinst.cycles lineincrement = watchlist.getincrement(line) - pcskip.append(0) except KeyError as e: print('Auto error invalid addr', hex(e.args[0])) return None