strace

Posted anyu686

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了strace相关的知识,希望对你有一定的参考价值。

strace  for troubleshoot , to know the system call, know the opened file 

system call, interface between an application and linux kernel      execute() clone()

 

strace-o write output to file

strace -e trace a particular system call  e.g strace -e trace-open ls 

 

strace -f  follow child  process

strace -p process id 

strace -count time, calls, and errors for each syscall and report summary

以上是关于strace的主要内容,如果未能解决你的问题,请参考以下文章