linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] bpf: Add kretprobe fallback for kprobe multi link
@ 2025-12-18 13:06 liujing40
  2025-12-18 13:06 ` [PATCH 1/2] bpf: Prepare for kprobe multi link fallback patch liujing40
  2025-12-18 13:06 ` [PATCH 2/2] bpf: Implement kretprobe fallback for kprobe multi link liujing40
  0 siblings, 2 replies; 10+ messages in thread
From: liujing40 @ 2025-12-18 13:06 UTC (permalink / raw)
  To: ast, daniel, andrii, mhiramat, martin.lau, eddyz87, song,
	yonghong.song, john.fastabend, kpsingh, sdf, haoluo, jolsa
  Cc: bpf, linux-kernel, linux-trace-kernel, liujing40

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-12-22 17:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 13:06 [PATCH 0/2] bpf: Add kretprobe fallback for kprobe multi link liujing40
2025-12-18 13:06 ` [PATCH 1/2] bpf: Prepare for kprobe multi link fallback patch liujing40
2025-12-18 13:06 ` [PATCH 2/2] bpf: Implement kretprobe fallback for kprobe multi link liujing40
2025-12-18 13:33   ` bot+bpf-ci
2025-12-18 17:53   ` Alexei Starovoitov
2025-12-18 21:09     ` Steven Rostedt
2025-12-22  8:00       ` liujing40
2025-12-19  1:57   ` Menglong Dong
2025-12-22  8:02     ` liujing40
2025-12-22 17:15       ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).