Re: [PATCH v2 4/7] rtla/tests: Test BPF action program

From: Tomas Glozar
Date: Mon Oct 27 2025 - 11:32:48 EST


po 27. 10. 2025 v 15:48 odesílatel Tomas Glozar <tglozar@xxxxxxxxxx> napsal:
>
> Add a test that implements a BPF program writing to a test map, which
> is attached to RTLA via --bpf-action to be executed on theshold
> overflow.
>
> A combination of --on-threshold shell with bpftool (which is always
> present if BPF support is enabled) is used to check whether the BPF
> program has executed successfully.
>
> Suggested-by: Crystal Wood <crwood@xxxxxxxxxx>
> Signed-off-by: Tomas Glozar <tglozar@xxxxxxxxxx>
> ---
> tools/tracing/rtla/Makefile | 10 ++++++++--
> tools/tracing/rtla/tests/timerlat.t | 15 +++++++++++++++
> 2 files changed, 23 insertions(+), 2 deletions(-)
>

Oops, I missed the actual file with the test!

I'll send a v3, sorry for the noise.

Tomas