orbit icon indicating copy to clipboard operation
orbit copied to clipboard

Callstacks on Uprobes

Open florian-kuebler opened this issue 6 years ago • 4 comments

On Windows you can right-click on a probe of a dynamically instrumented function and get the callstack of that call. This should be also possible in the Linux and remote version.

florian-kuebler avatar Oct 30 '19 14:10 florian-kuebler

This is somewhat working with bpftrace, however the callstacks from bpftrace rely on framepointers and are not that reliable, so this is turned off for the moment. However, it would be nice, to have a UI switch to turn it on again.

In the long term, we should switch from bpftrace to perf_event_open syscall and use libunwindstack (Android) or libunwind to for stack unwinding.

florian-kuebler avatar Dec 02 '19 14:12 florian-kuebler

I believe this is done.

dimitry- avatar Jun 16 '20 11:06 dimitry-

Actually this is not done in the current version (there might be some option), but in general we are to slow to process callstacks for many uprobes, which is why we don't have them at the moment. However, it is desirable (e.g. by a custom trampoline) to have them.

florian-kuebler avatar Jun 16 '20 11:06 florian-kuebler

Trackin internally: http://b/159107241

dimitry- avatar Jun 16 '20 11:06 dimitry-