rtla/timerlat_bpf: Allow resuming tracing
authorTomas Glozar <tglozar@redhat.com>
Thu, 26 Jun 2025 12:33:59 +0000 (14:33 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 25 Jul 2025 20:43:56 +0000 (16:43 -0400)
commit3b78670e3a932c654dedf88807e70e19719cb0cb
tree64569f5bc3c47a63c50c66f33ad872e1a069ab73
parent6ea082b171e00bb68b749426f03d9d7e833e9f51
rtla/timerlat_bpf: Allow resuming tracing

Currently, rtla-timerlat BPF program uses a global variable stored in a
.bss section to store whether tracing has been stopped.

Move the information to a separate map, so that it is easily writable
from userspace, and add a function that clears the value, resuming
tracing after it has been stopped.

Cc: John Kacur <jkacur@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Chang Yin <cyin@redhat.com>
Cc: Costa Shulyupin <costa.shul@redhat.com>
Cc: Crystal Wood <crwood@redhat.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/20250626123405.1496931-4-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/src/timerlat.bpf.c
tools/tracing/rtla/src/timerlat_bpf.c
tools/tracing/rtla/src/timerlat_bpf.h