]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtla/timerlat_top: Move divisor to update
authorTomas Glozar <tglozar@redhat.com>
Tue, 18 Feb 2025 14:58:57 +0000 (15:58 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 4 Mar 2025 17:35:18 +0000 (12:35 -0500)
commit18923806b1291102cad3a6b713006c7e7f563534
treed49187ab9f999f6258c02bcc6bda5fd5450e73c1
parentfd7925cbb729c7744ffbac95928be4598354c540
rtla/timerlat_top: Move divisor to update

Unlike timerlat-hist, timerlat-top applies the output divisor used to
set ns/us mode when printing results instead of applying it when
collecting the samples.

Move the application of the divisor from timerlat_top_print into
timerlat_top_update to make it consistent with timerlat-hist.

Cc: John Kacur <jkacur@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Link: https://lore.kernel.org/20250218145859.27762-7-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/src/timerlat_top.c