From 9681d0d8de0522bf34403d2c748abf2068272b54 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Thu, 25 Apr 2024 15:17:44 -0500 Subject: [PATCH] SWDEV-458196: Fixing PID and TID Perfetto added more restrictions on the types, so "1" is different from 1 alone, which wasn't the case before. Thats why we are seeing this issue recently Change-Id: I69835c8f61bb9168fdfcdcd0821c1ba35d0369fe --- bin/sqlitedb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/sqlitedb.py b/bin/sqlitedb.py index 7dee934fe4..4d54e29a0b 100644 --- a/bin/sqlitedb.py +++ b/bin/sqlitedb.py @@ -261,6 +261,8 @@ class SQLiteDB: if label != '"Index"': if label == '"dur"' and value == 0: vals_list.append('%s:"%s"' % (label, "1")) + elif label == '"pid"' or label == '"tid"': + vals_list.append('%s:%d' % (label, value)) else: vals_list.append('%s:"%s"' % (label, value))