Skip to content

Instantly share code, notes, and snippets.

@proger
Created February 20, 2012 15:25
Show Gist options
  • Select an option

  • Save proger/1869664 to your computer and use it in GitHub Desktop.

Select an option

Save proger/1869664 to your computer and use it in GitHub Desktop.
linuxvfs.d
#!/usr/local/bin/dtrace -s
//#define d_name(dent) ((uintptr_t) ((struct dentry *)dent)->d_name.name))
fbt::vfs_create:entry,
fbt::vfs_unlink:entry
{
printf("%s[%d]: %s", execname, pid, copyinstr((uintptr_t) ((struct dentry *)arg1)->d_name.name));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment