Re: [RFC PATCH bpf-next 00/12] bpf: Introduce static-defined tracing probe for BPF
From: Xu Kuohai
Date: Mon Jun 29 2026 - 22:30:12 EST
On 6/30/2026 10:14 AM, Leon Hwang wrote:
On 30/6/26 09:19, Xu Kuohai wrote:
On 6/29/2026 9:53 PM, Leon Hwang wrote:
So it is more of a user-space workaround than a formal solution. And even
for this workaround, there is no need to add a new libbpf API to remove the
stub. You can simply build two versions of bpf prog, one with subprog and
one without. When you need to trace fentry, load the first one; otherwise,
load the second one.
Yep.
I think current implementation is too complicated to justify this kind
What SDT resolves is dynamic tracing after the prog is loaded, the hacking
before loading does not apply.
of workaround. I'd be more comfortable with a simpler approach.
Right, the implementation is indeed in a somewhat prototype state and needs
polish. The RFC was sent out to check if this is a worthwhile direction. I'll
craft a cleaner, refined version after getting more feedback.
Thanks,
Leon