xioctl.d
来自「Sun Solaris 10 中的 DTrace 组件的源代码。请参看: htt」· D 代码 · 共 25 行
D
25 行
/* * To make the output more readable, we want to indent every function entry * (and unindent every function return). This is done by setting the * "flowindent" option. */#pragma D option flowindentsyscall::ioctl:entry/execname == "xclock" && guard++ == 0/{ self->traceme = 1; printf("fd: %d", arg0);}fbt:::/self->traceme/{}syscall::ioctl:return/self->traceme/{ self->traceme = 0; exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?