From 40c312234db7fa14aa8e03f39700b495cb72a28b Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Sat, 30 Dec 2023 17:16:49 -0300 Subject: [PATCH] SWDEV-437776: ATT fix for s_delay_salu Change-Id: I962c40c4c4fa2583a235e8185a056fdb69e44c78 [ROCm/rocprofiler commit: bc9ada7d345104a375e1a70a56b135c894ca545a] --- projects/rocprofiler/plugin/att/stitch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/rocprofiler/plugin/att/stitch.py b/projects/rocprofiler/plugin/att/stitch.py index 5f7605d50b..6d51e36623 100644 --- a/projects/rocprofiler/plugin/att/stitch.py +++ b/projects/rocprofiler/plugin/att/stitch.py @@ -10,7 +10,7 @@ from copy import deepcopy MAX_STITCHED_TOKENS = 200000000 MAX_FAILED_STITCHES = 256 -UNKNOWN = 0 +SKIP = 0 SMEM = 1 SALU = 2 VMEM = 3 @@ -29,7 +29,7 @@ PCINFO = 15 DONT_KNOW = 100 WaveInstCategory = { - UNKNOWN: "UNKNOWN", + SKIP: "SKIP", SMEM: "SMEM", SALU: "SALU", VMEM: "VMEM", @@ -195,7 +195,7 @@ class PCTranslator: symbol = "Unkown symbol at 0x" + hex(addr) last_line = self.raw_code[-1] - newline = ['; ' + symbol, 100, last_line[2], 0, last_line[4], last_line[5], 0, 0, 0] + newline = ['; ' + symbol, DONT_KNOW, last_line[2], 0, last_line[4], last_line[5], 0, 0, 0] self.raw_code.append(newline) def getcode(self, addr): @@ -301,7 +301,7 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice): c[0] = c[0].split(";")[0].split("//")[0].strip() jump_map.append(len(code)) - if c[1] != 100: + if c[1] != DONT_KNOW: code.append(c) elif ":" in c[0]: labels[c[0].split(":")[0]] = len(code) @@ -381,7 +381,7 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice): elif 'scratch_' in as_line[0]: watchlist.scratch(as_line[0]) - if as_line[1] == DONT_KNOW: + if as_line[1] == DONT_KNOW or (as_line[1] == SKIP and not bGFX9): matched = False elif as_line[1] == GETPC: try: