Created
January 26, 2022 02:53
-
-
Save papertigers/6465b2aabfcc9465ed3de831d22c8b4a to your computer and use it in GitHub Desktop.
illumos downstack
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 -FCs | |
$1:entry | |
{ | |
stack(); | |
self->trace = 1; | |
} | |
$1:return | |
/self->trace == 1/ | |
{ | |
printf("Returns 0x%llx", arg1); | |
self->trace = 0; | |
/* XXX KEBE SAYS just run once for now. */ | |
exit(1); | |
} | |
::entry | |
/self->trace == 1/ | |
{ | |
} | |
::return | |
/self->trace == 1/ | |
{ | |
printf("Returns 0x%llx", arg1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./downstack lx_socket