From 06cd40d7ab57cfdfbb7c530f36a438d28bc2695d Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Thu, 10 Aug 2023 19:31:55 -0300 Subject: [PATCH] SWDEV-354913: Fixed rocprofv1 hip-trace for no kernel calls Change-Id: Iaaed532b98be0e4a74849e272d484a37c874963c --- bin/tblextr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tblextr.py b/bin/tblextr.py index 73e3847501..c549fc09b0 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -479,6 +479,7 @@ def fill_api_db(table_name, db, indir, api_name, api_pid, dep_pid, dep_list, dep if (proc_id,stream_id) in last_hip_api_map: (last_hip_api_corr_id, last_hip_api_from_pid) = last_hip_api_map[(proc_id,stream_id)][-1] sync_api_beg_us = int((int(rec_vals[0]) - START_NS) / 1000) + if not proc_id in dep_dict: dep_dict[proc_id] = {} if HIP_PID not in dep_dict[proc_id]: dep_dict[proc_id][HIP_PID] = { 'pid': last_hip_api_from_pid, 'from': [], 'to': {}, 'id': [] } dep_dict[proc_id][HIP_PID]['from'].append((-1, stream_id, thread_id))