[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251218130629.365398-1-liujing40@xiaomi.com>
Date: Thu, 18 Dec 2025 21:06:27 +0800
From: liujing40 <liujing.root@...il.com>
To: ast@...nel.org,
daniel@...earbox.net,
andrii@...nel.org,
mhiramat@...nel.org,
martin.lau@...ux.dev,
eddyz87@...il.com,
song@...nel.org,
yonghong.song@...ux.dev,
john.fastabend@...il.com,
kpsingh@...nel.org,
sdf@...ichev.me,
haoluo@...gle.com,
jolsa@...nel.org
Cc: bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org,
liujing40@...omi.com
Subject: [PATCH 0/2] bpf: Add kretprobe fallback for kprobe multi link
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
Powered by blists - more mailing lists