Committed a simple dtrace script that tracks

process termination, which can be useful to track
debugserver's delivery of signals.

llvm-svn: 162104
This commit is contained in:
Sean Callanan 2012-08-17 16:30:13 +00:00
parent dffbb3b330
commit 433c8a1f44

View File

@ -0,0 +1,18 @@
fbt::exception_deliver:entry
{
printf("pid %d got an exception of type %d\n", pid, arg1);
stack();
ustack();
}
syscall::kill:entry
{
printf("pid %d called kill(%d, %d)\n", pid, arg0, arg1);
ustack();
}
syscall::__pthread_kill:entry
{
printf("pid %d called pthread_kill(%p, %d)\n", pid, arg0, arg1);
ustack();
}