Re: [PATCH 3/4] rtla/timerlat: Add example for BPF action program

From: Tomas Glozar
Date: Mon Oct 27 2025 - 06:35:19 EST


pá 24. 10. 2025 v 3:49 odesílatel Crystal Wood <crwood@xxxxxxxxxx> napsal:
>
> OK, but as far as I can tell there's no way to get the non-BPF "stop
> tracing hit" messages without adding a call to trace_array_init_printk()
> into trace_osnoise.c.
>

I'm not sure what you mean. The --bpf-action functionality is
exclusive for BPF mode, bpf_trace_printk() / bpf_printk(), as Steven
clarified, is a BPF helper that triggers a trace event, defined in
kernel/trace/bpf_trace.c and kernel/trace/bpf_trace.h.

Either way, it seems that the event is not always recorded in the RTLA
trace instance due to a bug. It might have something to do with the
trace instance recording both osnoise:timerlat_sample and
bpf_trace_printk, and failing to record a trace event generated during
the handling of another trace event. So this is not a reliable way to
test the BPF actions feature, and I'll probably have to use my
original idea.

Tomas