]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtla: Refactor save_trace_to_file
authorCosta Shulyupin <costa.shul@redhat.com>
Wed, 19 Feb 2025 11:51:10 +0000 (13:51 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 4 Mar 2025 19:17:19 +0000 (14:17 -0500)
commitdc4d4e7c72d17e6f6bdd9ce0d7a72a085828987f
tree65f9022691e59387af62e5cd83a3b66bac8a2a8a
parente82c78afa3d48f6512570e7d39258cd68e7bae0a
rtla: Refactor save_trace_to_file

The functions osnoise_hist_main(), osnoise_top_main(),
timerlat_hist_main(), and timerlat_top_main() are lengthy and contain
duplicated code.

Refactor by consolidating the duplicate lines into the
save_trace_to_file() function.

Cc: Daniel Bristot de Oliveira <bristot@kernel.org>
Cc: John Kacur <jkacur@redhat.com>
Cc: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
Cc: Eder Zulian <ezulian@redhat.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/20250219115138.406075-1-costa.shul@redhat.com
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Tested-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/src/osnoise_hist.c
tools/tracing/rtla/src/osnoise_top.c
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c
tools/tracing/rtla/src/trace.c