From 48cb6f80ee45dac1572d929eb30b2a4374097c85 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 31 May 2022 17:54:49 +0100 Subject: [PATCH] lisa.trace: Fix parsing of sched_pelt_se/sched_util_est_se FIX Parse the "pid" field as a int32 instead of uint32, as -1 is used when the described entity is not a task. --- lisa/trace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisa/trace.py b/lisa/trace.py index 8815afc15..3b5c376ad 100644 --- a/lisa/trace.py +++ b/lisa/trace.py @@ -687,6 +687,7 @@ class TxtTraceParserBase(TraceParserBase): 'pointer': 'uint64', 'cpu': 'uint16', 'pid': 'uint32', + 'signed_pid': 'int32', 'comm': 'string', 'cgroup_path': 'string', # prio in [-1, 140] @@ -1439,7 +1440,7 @@ class TxtTraceParser(TxtTraceParserBase): 'cpu': _KERNEL_DTYPE['cpu'], 'load': _KERNEL_DTYPE['util'], 'path': _KERNEL_DTYPE['cgroup_path'], - 'pid': _KERNEL_DTYPE['pid'], + 'pid': _KERNEL_DTYPE['signed_pid'], 'rbl_load': _KERNEL_DTYPE['util'], 'util': _KERNEL_DTYPE['util'], 'update_time': _KERNEL_DTYPE['timestamp'], @@ -1504,7 +1505,7 @@ class TxtTraceParser(TxtTraceParserBase): fields={ 'cpu': _KERNEL_DTYPE['cpu'], 'comm': _KERNEL_DTYPE['comm'], - 'pid': _KERNEL_DTYPE['pid'], + 'pid': _KERNEL_DTYPE['signed_pid'], 'path': _KERNEL_DTYPE['cgroup_path'], 'enqueued': _KERNEL_DTYPE['util'], 'ewma': _KERNEL_DTYPE['util'], -- GitLab