Strace: trace 系统调用
来源:互联网 发布:个性域名怎么写 编辑:程序博客网 时间:2024/06/11 13:27
如:
strace -s 200 -f -o /var/tmp/trace.log -p <process pid>
-s strsize Specify the maximum string size to print (the default is 32). Note that filenames are not considered strings and are always printed
in full. 打处理的最大字符串长度
-p pid Attach to the process with the process ID pid and begin tracing. The trace may be terminated at any time by a keyboard interrupt
signal (CTRL-C). strace will respond by detaching itself from the traced process(es) leaving it (them) to continue running. Multi-
ple -p options can be used to attach to up to 32 processes in addition to command (which is optional if at least one -p option is
given).
-o file 输出到文件
-f Trace child processes as they are created by currently traced processes as a result of the fork(2) system call.
On non-Linux platforms the new process is attached to as soon as its pid is known (through the return value of fork(2) in the parent
process). This means that such children may run uncontrolled for a while (especially in the case of a vfork(2)), until the parent is
scheduled again to complete its (v)fork(2) call. On Linux the child is traced from its first instruction with no delay. If the par-
ent process decides to wait(2) for a child that is currently being traced, it is suspended until an appropriate child process either
terminates or incurs a signal that would cause it to terminate (as determined from the child’s current signal disposition).
On SunOS 4.x the tracing of vforks is accomplished with some dynamic linking trickery.
- Strace: trace 系统调用
- strace跟踪系统调用
- strace命令 系统调用
- strace 与系统调用
- strace用来监视“系统调用“
- 使用strace监视系统调用
- 监控系统调用工具strace
- linux 系统调用跟踪---strace
- 使用strace跟踪系统调用
- 监控系统调用工具strace
- 用strace跟踪系统调用
- Linux strace 系统调用跟踪
- strace统计程序系统调用
- strace工具跟踪系统调用和信号
- strace 命令来查看系统调用
- 看程序系统调用流程-strace使用
- linux strace命令--跟踪系统调用
- 系统调用跟踪命令strace和dtruss
- Servlet线程安全?不安全?
- 随谈 css定位
- 详解大端模式和小端模式
- 架构师的成长历程:合格的架构师是如何炼成的
- 第五章 子网划分和CIDR
- Strace: trace 系统调用
- 【Windows系统如何跟踪IP地址的方法介绍】
- Oracle命令--检查数据库状态是否正确
- 持续集成服务器 Apache Continuum
- 介绍几个常用的jquery ui框架
- java.sql.SQLException: Access denied for user 'root'@'localhost'
- unable to resolve superclass of 的奇怪问题和一种解决方法!
- Java——多线程编程【1】
- centos上redmine跟SVN的整合