unix system call monitor

泪湿孤枕 提交于 2019-12-07 07:35:22

问题


how to monitor system calls for a process?


回答1:


Check strace

In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option.

Each line in the trace contains the system call name, followed by its arguments in parentheses and its return value.



来源:https://stackoverflow.com/questions/1010561/unix-system-call-monitor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!