Skip to content

Instantly share code, notes, and snippets.

@tjfontaine

tjfontaine/vox.d Secret

Created May 9, 2013 18:33
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 tjfontaine/e732c62249b1c376570b to your computer and use it in GitHub Desktop.
Save tjfontaine/e732c62249b1c376570b to your computer and use it in GitHub Desktop.
pid$target::gettimeofday:entry {
self->tv = arg0;
}
pid$target::gettimeofday:return {
tv = (struct timeval *)copyin(self->tv, sizeof(struct timeval));
ms = ((tv->tv_sec * 1000) + (tv->tv_usec / 1000));
printf("%d\n", ms);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment