]> git.ipfire.org Git - thirdparty/linux.git/commit
rtla/tests: Test BPF action program
authorTomas Glozar <tglozar@redhat.com>
Wed, 26 Nov 2025 14:42:02 +0000 (15:42 +0100)
committerTomas Glozar <tglozar@redhat.com>
Wed, 7 Jan 2026 14:57:16 +0000 (15:57 +0100)
commit5525aebd4e0c6f7d92ec1cb074218bbcf3d46f13
tree2cfffca0a212e5f2dda3df20597e1441bcb9c3c2
parent0304a3b7ec9a207637ab6f360a41af5fb25e1f44
rtla/tests: Test BPF action program

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@redhat.com>
Link: https://lore.kernel.org/r/20251126144205.331954-5-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/Makefile
tools/tracing/rtla/tests/bpf/bpf_action_map.c [new file with mode: 0644]
tools/tracing/rtla/tests/timerlat.t