On Thu, 2026-10-22 at 12:09 +0200, Gabriele Monaco wrote: > Exporting all handlers functions is probably going to require a significant > redesign of the current RV internals. > Handlers have access to the monitor headers (everything is static/inlined), > kfuncs wouldn't.
I gave it some more thought, while you could generalise the DA monitor definition structure (imposing size limits and taking up that space anyway or doing some /smart/ things the BPF verifier probably wouldn't enjoy) then pass that to the handlers, I cannot think how to have a kfunc call the LTL functions defined in BPF. You'd probably need a helper macro that is essentially doing what the "shared" functions do now. I could fire up an LLM and get some /original/ ways to work around that, but all I can think of is essentially rewriting RV from scratch. Again, the easiest thing to do is kfunc only what goes out (tracepoints and eventually reactors) and keep the rest in BPF. Gabriele
