From 28f39abfa449fd97e867bb7252fbc33204c621b6 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Fri, 12 Apr 2024 11:33:48 -0500 Subject: [PATCH] Barrier Packets are being displayed with kernel dispatches Workaround to seperate barrier packets in a separate category named GPU Barriers in JSON to easily navigate dispatches in perfetto and chrome tracing UI Change-Id: I714975f50a186622612e605b98d0b45426d53aa4 --- bin/tblextr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/tblextr.py b/bin/tblextr.py index 0d0ba6ee32..0e05b53b1e 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -971,11 +971,13 @@ def fill_ops_db(kernel_table_name, mcopy_table_name, db, indir): gpu_id = int(rec_vals[2]) if gpu_id > max_gpu_id: max_gpu_id = gpu_id - sect_id = GPU_BASE_PID + int(gpu_id) if ptrn_barrier.search(name): name = '""' is_barrier = 1 + sect_id = GPU_BASE_PID + int(gpu_id) + 512 + else: + sect_id = GPU_BASE_PID + int(gpu_id) thread_id = 0 stream_id = 0 @@ -1151,6 +1153,7 @@ else: if any_trace_found and max_gpu_id >= 0: for ind in range(0, int(max_gpu_id) + 1): db.label_json(int(ind) + int(GPU_BASE_PID), "GPU" + str(ind), jsonfile) + db.label_json(int(ind) + int(GPU_BASE_PID) + 512 , "GPU Barriers" + str(ind), jsonfile) if ext_trace_found: dform.gen_ext_json_trace(db, "rocTX", START_NS, jsonfile)