Skip to content

Instantly share code, notes, and snippets.

@wiedi

wiedi/test.d Secret

Created July 15, 2015 14:06
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 wiedi/4b4ebe5f92ac5b54951b to your computer and use it in GitHub Desktop.
Save wiedi/4b4ebe5f92ac5b54951b to your computer and use it in GitHub Desktop.
#!/usr/sbin/dtrace -s
pid$target:libdovecot.so.0.0.0:safe_sendfile:entry {
self->out_fd = arg0;
self->in_fd = arg1;
self->offset = arg2;
self->count = arg3;
}
pid$target:libdovecot.so.0.0.0:safe_sendfile:return {
printf("%d %d %x %d -> %d", self->out_fd, self->in_fd, self->offset, self->count, arg0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment