This patch provides a fallback implementation of kprobe multi link using the traditional kretprobe API When fprobe is not available. This ensures compatibility with older kernels or platforms where fprobe support is not compiled in.
Uses kretprobe's entry_handler and handler callbacks to simulate fprobe's entry/exit functionality.The API remains identical to fprobe-based implementation, allowing userspace tools to work transparently with either backend. Cookie support, both entry and return probes, and session handling are fully supported. Jing Liu (2): bpf: Prepare for kprobe multi link fallback patch bpf: Implement kretprobe fallback for kprobe multi link kernel/trace/bpf_trace.c | 603 ++++++++++++++++++++++++++++----------- 1 file changed, 443 insertions(+), 160 deletions(-) -- 2.25.1
