From 1f925b3f160b4a01de4fc719bbc8e23319ee4adc Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Wed, 13 Apr 2022 12:58:31 +0000 Subject: [PATCH] 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 --- bin/tblextr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tblextr.py b/bin/tblextr.py index 48b2505b06..27ab8af6f3 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -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: