Replies: 2 comments 9 replies
-
Uprobe is implemented as kprobe in kernel, that's alright. No fancy emoji in your trace_printk please. |
Beta Was this translation helpful? Give feedback.
3 replies
-
https://github.com/lalitb/ebpf-uprober/blob/57812dac7d5fa8ed3599051e73c14bedf65bf439/src/main.rs#L71 I suspect you are dropping the link, detaching the probe. Also see #874 for additional advice. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
eBPF Uprobe Not Triggering for User-Space Function in Rust (
libbpf-rs
)Issue
I am working on an eBPF uprober using
libbpf-rs
to attach to a user-space function (test_function
) in a statically compiled binary (test_program
). However, while the uprober successfully attaches, no events are captured intrace_pipe
.I believe I am missing something simple, but I haven’t been able to figure it out. Any suggestions or help would be greatly appreciated. Thanks!
Here are the steps I followed, while the full code is here - https://github.com/lalitb/ebpf-uprober/
Setup & Steps Taken
1️⃣ Compiling
test_program.c
test_function
exists using:2️⃣ eBPF Program (
uprober.bpf.c
)3️⃣ Rust Userspace Code (
main.rs
)4️⃣ Attaching the Uprobe
❌ Unexpectedly, it appears as a kprobe instead of a uprobe!
Also, 🚨 Issue: No logs appear! in
/sys/kernel/debug/tracing/trace_pipe
whentest_program
is executed.Beta Was this translation helpful? Give feedback.
All reactions