SWDEV-332635: Fixing the effect of roctx-rename feature

HIP/HSA traces were asked to access range_data list, however, it was not initialized because roctx tracing was not enabled, moved lists initialization before roctx check

Change-Id: I9942876445cb1b2f69c6bb0d8986d6d9234f1441
This commit is contained in:
Ammar ELWazir
2022-04-13 12:58:31 +00:00
parent 1078a088e9
commit 1f925b3f16
+2 -2
View File
@@ -263,12 +263,12 @@ def fill_ext_db(table_name, db, indir, trace_name, api_pid):
# tms pid:tid cid:rid:'.....'
ptrn_val = re.compile(r'(\d+) (\d+):(\d+) (\d+):(\d+):"(.*)"$')
if not os.path.isfile(file_name): return 0
range_data = {}
range_stack = {}
range_map = {}
if not os.path.isfile(file_name): return 0
record_id = 0
table_handle = db.add_table(table_name, ext_table_descr)
with open(file_name, mode='r') as fd: