]> git.ipfire.org Git - thirdparty/linux.git/commit
rtla/timerlat: Add --bpf-action option
authorTomas Glozar <tglozar@redhat.com>
Wed, 26 Nov 2025 14:42:00 +0000 (15:42 +0100)
committerTomas Glozar <tglozar@redhat.com>
Wed, 7 Jan 2026 14:57:16 +0000 (15:57 +0100)
commitf967d1eca7d0bde7c896014577ea876096831c6e
tree08ddb78b7b99c729d134dcf0a04852200f845f4c
parent8cd0f08ac72e25e2a048c72d76730676ab0106f3
rtla/timerlat: Add --bpf-action option

Add option --bpf-action that allows the user to attach an external BPF
program that will be executed via BPF tail call on latency threshold
overflow.

Executing additional BPF code on latency threshold overflow allows doing
low-latency and in-kernel troubleshooting of the cause of the overflow.

The option takes an argument, which is a path to a BPF ELF file
expected to contain a function named "action_handler" in a section named
"tp/timerlat_action" (the section is necessary for libbpf to assign the
correct BPF program type to it).

Link: https://lore.kernel.org/r/20251126144205.331954-3-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/timerlat.c
tools/tracing/rtla/src/timerlat.h
tools/tracing/rtla/src/timerlat_bpf.c
tools/tracing/rtla/src/timerlat_bpf.h
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c