Skip to content

Instantly share code, notes, and snippets.

@papertigers
Created January 26, 2022 02:53
Show Gist options
  • Save papertigers/6465b2aabfcc9465ed3de831d22c8b4a to your computer and use it in GitHub Desktop.
Save papertigers/6465b2aabfcc9465ed3de831d22c8b4a to your computer and use it in GitHub Desktop.
illumos downstack
#!/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);
}
@papertigers
Copy link
Author

./downstack lx_socket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment