]> git.ipfire.org Git - thirdparty/linux.git/commit
rtla/timerlat: Add example for BPF action program
authorTomas Glozar <tglozar@redhat.com>
Wed, 26 Nov 2025 14:42:01 +0000 (15:42 +0100)
committerTomas Glozar <tglozar@redhat.com>
Wed, 7 Jan 2026 14:57:16 +0000 (15:57 +0100)
commit0304a3b7ec9a207637ab6f360a41af5fb25e1f44
treef14918df75d14e2ea124d3f527cfe0b74984f8c9
parentf967d1eca7d0bde7c896014577ea876096831c6e
rtla/timerlat: Add example for BPF action program

Add an example BPF action program that prints the measured latency to
the tracefs buffer via bpf_printk().

A new Makefile target, "examples", is added to build the example. In
addition, "sample/" subfolder is renamed to "example".

If BPF skeleton support is unavailable or disabled, a warning will be
displayed when building the BPF action program example.

Link: https://lore.kernel.org/r/20251126144205.331954-4-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/Makefile
tools/tracing/rtla/example/timerlat_bpf_action.c [new file with mode: 0644]
tools/tracing/rtla/example/timerlat_load.py [moved from tools/tracing/rtla/sample/timerlat_load.py with 100% similarity]