]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/rtla: Add for_each_monitored_cpu() helper
authorCosta Shulyupin <costa.shul@redhat.com>
Thu, 2 Oct 2025 12:35:38 +0000 (15:35 +0300)
committerTomas Glozar <tglozar@redhat.com>
Thu, 20 Nov 2025 12:15:53 +0000 (13:15 +0100)
commit04fa6bf3736d727bb800dddb23c9a513969e565d
treee0bc4cff09ea89949b03cf92f10a4edd6540d486
parent0d5077c73aceb51ef10d096160dd62a11db2f3e4
tools/rtla: Add for_each_monitored_cpu() helper

The rtla tools have many instances of iterating over CPUs while
checking if they are monitored.

Add a for_each_monitored_cpu() helper macro to make the code
more readable and reduce code duplication.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Link: https://lore.kernel.org/r/20251002123553.389467-1-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/common.h
tools/tracing/rtla/src/osnoise_hist.c
tools/tracing/rtla/src/osnoise_top.c
tools/tracing/rtla/src/timerlat.c
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c