diff --git a/projects/rocprofiler/bin/tblextr.py b/projects/rocprofiler/bin/tblextr.py index 6d05a644bf..9d47b5c4f3 100755 --- a/projects/rocprofiler/bin/tblextr.py +++ b/projects/rocprofiler/bin/tblextr.py @@ -237,7 +237,9 @@ def fill_ext_db(table_name, db, indir, trace_name, api_pid): continue if cid == 2: + if not pid in range_stack: fatal("ROCTX range begin missed, pid(" + pid + ")"); pid_stack = range_stack[pid] + if not tid in pid_stack: fatal("ROCTX range begin missed, tid(" + tid + ")"); rec_stack = pid_stack[tid] rec_vals = rec_stack.pop() rec_vals[1] = tms