unix 系统调用监视器

标签 unix debugging monitoring system-calls

如何监控进程的系统调用?

最佳答案

查询 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.

关于unix 系统调用监视器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1010561/

相关文章:

c - 一个Segfaulting Skip List,一个毁了的周末(C编程)

asp.net - 网页监控问题

java - 是否有针对集群的 java 监控/警报框架?

monitoring - 如何在 Grafana 2.5 中删除面板

linux - 多字符串命令输出只保存一串

unix - 如何在Unix中交换文件名?

linux - 在 shell 脚本中与 expr 相乘

CreateProcess + CREATE_SUSPENDED 标志在 Linux 中是否等效?

java - System.Diagnostics.Debugger.Break() 喜欢使用 java 吗?

c - 如果 shell 输出通过管道传输到某处,fork() 会导致父级 main 的开头执行