-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uprobe DWARF location attachment does not work with uprobe_multi #3173
Comments
Just to understand clearly, I could pass something like "uprobeFunction1+1234" inside the |
It's bpftrace that does the symbol resolution already in resolve_offset_uprobe_multi. Then we just pass the raw offsets to the kernel here: bpftrace/src/attached_probe.cpp Line 1102 in d592be8
|
Exactly. So, we could support storing |
Is there something I need to enable in the Kernel?
|
I don't think there are any kernel settings to configure. Have you got a recent version of libbpf? Looks like it'll need 1.3 or newer: https://github.com/libbpf/libbpf/releases |
#3095 introduced parsing of DWARF for a binary and attaching uprobes after the function prologue. This is currently not used in combination with uprobe_multi, compare:
In the second stack, uprobe is not attached after the prologue.
Since uprobe_multi link actually accepts offsets rather that function names, it should be possible to use these two mechanisms together.
cc @ttreyer
The text was updated successfully, but these errors were encountered: