Skip to content

Commit

Permalink
SWDEV-332635: Fixing the effect of roctx-rename feature
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ammarwa committed Apr 13, 2022
1 parent 1078a08 commit 1f925b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/tblextr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1f925b3

Please sign in to comment.