Skip to content

Instantly share code, notes, and snippets.

@jclulow
Created April 23, 2020 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jclulow/19b8036617de0c74c732bb5e597901d4 to your computer and use it in GitHub Desktop.
Save jclulow/19b8036617de0c74c732bb5e597901d4 to your computer and use it in GitHub Desktop.
#!/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