Created
May 6, 2014 01:18
-
-
Save AlainODea/2dca7f01379245dd01e0 to your computer and use it in GitHub Desktop.
DTrace syscall read(2) errno when non-zero
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/dtrace -s | |
syscall::read:return | |
/errno != 0/ | |
{ | |
trace(execname); | |
printf("errno=%d\n", errno); | |
ustack(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment