site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jan 16, 2009, at 1:02 PM, Joel Reymont wrote: Better yet, use DTrace: #!/usr/sbin/dtrace -s syscall::fstat:return /execname == "myprocess" && arg0 != 0/ { printf("%s[%d] fstat returned %d\n", execname, pid, arg0); ustack(); } _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... It's a syscall, so it's only a stub in libc. It's actually defined in the kernel (the xnu module). Also, assuming that I can sudo, is it possible to set a breakpoint in kernel space to see where my fstat call is failing? This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Van Vechten