-
-
Save jclulow/19b8036617de0c74c732bb5e597901d4 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
export TZ=US/Pacific | |
dtrace -qn ' | |
BEGIN | |
{ | |
last = walltimestamp; | |
} | |
zfs-dbgmsg | |
/walltimestamp - last > 10000000000/ | |
{ | |
printf("\n"); | |
} | |
zfs-dbgmsg | |
{ | |
printf("%Y %s\n", walltimestamp, stringof(arg0)); | |
last = walltimestamp; | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment