readme-svr4
来自「linux进程跟踪的工具和源代码」· 代码 · 共 23 行
TXT
23 行
Even though SVR4 has truss, you may prefer using strace for a numberof reasons. Not the least of which are portability and source code.The main event loop is awkward on systems for which procfs isn'tpollable. I think a pollable procfs is a Solaris invention so most SVR4systems have this weakness. On Solaris, strace runs as a singlecontrolling process. This is a big improvement if you are debugging alot of processes at once.There is no thread support but it wouldn't be very difficult to add it.On UnixWare using the -f option to follow forked children sometimes showsmany "unfinished" system calls as strace bounces between each runnable child.A crude workaround for this is available by adding #define POLL_HACK 1to the config.h file. This forces strace to check whether the last processhas finished a system call before polling other processes for events.Wichert Akkerman <wakkerma@debian.org>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?