yijiem / tracing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tracing

Issues:

  1. Due to bpftrace/bpftrace#246, if the tracee exits first then the stacktrace would not be symbolicated by bpftrace.

    Current plan is to use an offline approach:

    • print the /proc/self/maps as provided by util.h at the start of the tracee program
    • calculate the relative file offset of the instruction by doing <instruction address> - <module load address>
    • use something like addr2line -a -e <binary> -f -C <offset> to translate the offset into function name, file and line number.

    symbolizer.py has basic support for this, it still has some issues though.

About


Languages

Language:Python 90.6%Language:C++ 8.9%Language:C 0.5%