demiobenour wrote:

>> (Note FWIW that systemtap's kernel runtime does DWARF-based unwinding
>> for the kernel and user-designated userspace executables and
>> shared-libraries on demand, and it's not particularly slow at it.)
>
> How does it do that?  Does it have a kernel-mode DWARF unwinder?

Yes.

# stap -e 'probe timer.profile { if(user_mode()) {
                 print_ubacktrace() println() 
           } }' \
       -d /lib64/libc.so.6  -d /path/to/other/library --ldd 

see also, e.g.:
https://sourceware.org/systemtap/man/stap.1.html
https://sourceware.org/systemtap/tapsets/API-print-backtrace-fileline.html
https://sourceware.org/systemtap/tapsets/API-print-ubacktrace-brief.html 

> Is this trick something that perf could use as well?

Yes, but this approach is unlikely to be adopted there.

- FChE
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to