SWDEV-443217: Fixing stitch.py for PCINFO and enabling filemode in att.py

Change-Id: I85744bc9610f9f224d1ce7bb5d5232ff36fc5f6e


[ROCm/rocprofiler commit: c7946c4f26]
Tento commit je obsažen v:
Giovanni LB
2024-01-25 19:56:15 -03:00
rodič df3e9d4fd6
revize 3cca2ccb9f
2 změnil soubory, kde provedl 1 přidání a 4 odebrání
+1 -2
Zobrazit soubor
@@ -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
-2
Zobrazit soubor
@@ -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