https://phpor.net/blog/post/3661
示例1:
通过 -e 选项直接执行probe,如:
1
|
stap -ve 'probe kernel.function("do_fork") { printf("%-25s %-10d 0x%-x\n", execname(), pid(), $clone_flags) }'
|
示例2:
跟踪指定进程,如:
1
|
# stap -e 'probe vfs.read {printf("read performed\n")}' -c 'ls'
|
示例3:
执行stp脚本,如;
1
|
#stap test.stp
|