用户空间跟踪器

# strace追踪系统调用 可执行文件test
strace ./test
# strace跟踪信号传递
# 系统调用统计
strace -c ./test
# -o选项重定向输出
strace -c -o file ./test
# -T 将每个系统调用所花费的时间打印出来
strace -T ./test
# 追踪现有的进程
-p pid
posted @ 2022-08-09 10:29  xing_l  阅读(25)  评论(0)    收藏  举报