]> git.baikalelectronics.ru Git - kernel.git/commit
rtla/utils: Fix session duration parsing
authorDaniel Bristot de Oliveira <bristot@kernel.org>
Fri, 4 Feb 2022 16:24:03 +0000 (17:24 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 4 Feb 2022 17:39:28 +0000 (12:39 -0500)
commit23827991ca6ecffea52e5e65a93278ce5e02f6da
treef7e7cc6d4f2b3595620fcb14d4fd4e3f032bd65e
parentf6038abf2b2026bd4ae5c73ffe352162aec7e343
rtla/utils: Fix session duration parsing

Use gmtime to format the duration time. This avoids problems when the
system uses local time different of Pisa's Local Time.

Link: https://lkml.kernel.org/r/a2f0a37bc006c2561bb8ecd871cd70532b4a9f2d.1643990447.git.bristot@kernel.org
Fixes: a0405c18bca5 ("rtla: Helper functions for rtla")
Cc: Daniel Bristot de Oliveira <bristot@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-trace-devel@vger.kernel.org
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/src/utils.c