Skip to content

Instantly share code, notes, and snippets.

@clee
Created August 21, 2012 05:15
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 clee/3411939 to your computer and use it in GitHub Desktop.
Save clee/3411939 to your computer and use it in GitHub Desktop.
script to trace invocations of 'free'
#!/usr/sbin/dtrace
pid$target::free:entry
{
printf("%s: %s\n", probefunc, copyinstr(arg0));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment