Last active
March 22, 2022 02:46
-
-
Save szaydel/38f560e9b200d7364218e8d90da845ad 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
dtrace -qn ' | |
::sdopen:entry { self->in_open = 1; } | |
::ddi_get_soft_state:entry /self->in_open/ { self->inst = args[1]; } | |
::ddi_get_soft_state:return /self->in_open/ { | |
printf("sd%d %d\n", self->inst, ((struct sd_lun *)args[1])->un_detach_count); | |
self->in_open = 0; | |
self->inst = 0; | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment