]> git.ipfire.org Git - thirdparty/linux.git/commit
rtla/timerlat_bpf: Stop tracing on user latency
authorTomas Glozar <tglozar@redhat.com>
Mon, 6 Oct 2025 14:31:00 +0000 (16:31 +0200)
committerTomas Glozar <tglozar@redhat.com>
Thu, 20 Nov 2025 12:15:55 +0000 (13:15 +0100)
commite4240db9336c25826a2d6634adcca86d5ee01bde
treea9773c196b387c7a6e97cad07b83930213d60c82
parentb4275b23010df719ec6508ddbc84951dcd24adce
rtla/timerlat_bpf: Stop tracing on user latency

rtla-timerlat allows a *thread* latency threshold to be set via the
-T/--thread option. However, the timerlat tracer calls this *total*
latency (stop_tracing_total_us), and stops tracing also when the
return-to-user latency is over the threshold.

Change the behavior of the timerlat BPF program to reflect what the
timerlat tracer is doing, to avoid discrepancy between stopping
collecting data in the BPF program and stopping tracing in the timerlat
tracer.

Cc: stable@vger.kernel.org
Fixes: e34293ddcebd ("rtla/timerlat: Add BPF skeleton to collect samples")
Reviewed-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20251006143100.137255-1-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/timerlat.bpf.c