.:: debugging ::. -------------------------------------------------------------------------------- # print syscalls of process with all threads (-f) of running process strace -f -p # only trace certain syscalls strace -f -p -e trace=open,socket # trace signals delivered to process strace -f -p -e signal # dump stack of process and all threads pstack # print file flags # +fg print file flag abbreviations lsof +fg -p # print process virt mem map # compared to /proc/<>/maps it shows the size of the mappings pmap # get supported events perf list perf stat -p perf stat -p -I perf stat -p -e cycles,faults,cache-misses,context-switches # -K hide kernel threads perf top -F 99 -p -K perf record -F 99 -p perf record -F 99 -p --call-graph dwarf perf record -F 99 -p -e instructions,cpu-cycles,faults,cache-misses,context-switches # print supported events ophelp operf -p opreport -c opreport -l -------------------------------------------------------------------------------- vim:sts=2:et:tw=80:cc=80:fo+=t:ft=help