You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ti-mo@lmb FYI pmu uprobes are broken; they were working before doing some refactoring. I suppose it's the offset not being passed correctly to perf_event_open:
@ungureanuvladvictor pointed me to the fact that the uprobe example works on Ubuntu's build of Bash (including 21.04), and I found that Ubuntu ships with a statically-linked version of readline. It looks like they vendor a version of readline in the Bash tree, but it can optionally be linked against libreadline.so:
~ objdump -T /bin/bash
00000000000ad900 g DF .text 0000000000000088 Base readline
On my system (Arch), readline is provided by libreadline.so:
The 0 offset as parsed by debug/elf is correct, this symbol is to be provided by a library and still needs to be relocated. This means we'll either need to find or implement a dynamic linker in Go, and allow the caller to pass in their own offsets for now. Will close this with a PR to disable creating Uprobes from symbols from SHN_UNDEF with offset 0.
@ti-mo @lmb FYI pmu uprobes are broken; they were working before doing some refactoring. I suppose it's the offset not being passed correctly to
perf_event_open
:I am continuing to debug.
PS. currently I believe there aren't "e2e" tests, are these planned?
Originally posted by @mmat11 in #280 (comment)
The text was updated successfully, but these errors were encountered: