]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtla: Introduce for_each_action() helper
authorWander Lairson Costa <wander@redhat.com>
Tue, 6 Jan 2026 11:49:39 +0000 (08:49 -0300)
committerTomas Glozar <tglozar@redhat.com>
Wed, 7 Jan 2026 14:57:55 +0000 (15:57 +0100)
commit648634d17c813b35da775982662e56ea8ce750de
tree9630d85c61089b70a5191dcc77a60537cdb30a8c
parent2a3a25336b1ba632a0a98249a7d4bbee454065aa
rtla: Introduce for_each_action() helper

The for loop to iterate over the list of actions is used in
more than one place. To avoid code duplication and improve
readability, introduce a for_each_action() helper macro.

Replace the open-coded for loops with the new helper.

Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260106133655.249887-4-wander@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/actions.c
tools/tracing/rtla/src/actions.h