SWDEV-443217: Fixing stitch.py for PCINFO and enabling filemode in att.py
Change-Id: I85744bc9610f9f224d1ce7bb5d5232ff36fc5f6e
[ROCm/rocprofiler commit: c7946c4f26]
This commit is contained in:
@@ -552,8 +552,7 @@ if __name__ == "__main__":
|
|||||||
if gfxv is None:
|
if gfxv is None:
|
||||||
continue
|
continue
|
||||||
if CSV_MODE == False and ftrace == 0:
|
if CSV_MODE == False and ftrace == 0:
|
||||||
print('Error: Only CSV mode is available for this version')
|
print('Generating occupancy information')
|
||||||
assert False
|
|
||||||
|
|
||||||
for id, addr in enumerate(addrs):
|
for id, addr in enumerate(addrs):
|
||||||
kernel_addr[id] = addr
|
kernel_addr[id] = addr
|
||||||
|
|||||||
@@ -334,7 +334,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice):
|
|||||||
if bIsAuto:
|
if bIsAuto:
|
||||||
try:
|
try:
|
||||||
firstinst = insts[0]
|
firstinst = insts[0]
|
||||||
insts = insts[1:]
|
|
||||||
|
|
||||||
if firstinst.type != PCINFO:
|
if firstinst.type != PCINFO:
|
||||||
print('Warning: Waves without PCINFO')
|
print('Warning: Waves without PCINFO')
|
||||||
@@ -347,7 +346,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice):
|
|||||||
watchlist.addsymbol(firstinst.cycles)
|
watchlist.addsymbol(firstinst.cycles)
|
||||||
line = firstinst.cycles
|
line = firstinst.cycles
|
||||||
lineincrement = watchlist.getincrement(line)
|
lineincrement = watchlist.getincrement(line)
|
||||||
pcskip.append(0)
|
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
print('Auto error invalid addr', hex(e.args[0]))
|
print('Auto error invalid addr', hex(e.args[0]))
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user