summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-03-19 09:05:40 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-03-19 09:05:40 +0000
commitf2014dc397c2f285566b439a8a6148a14b6a3ef9 (patch)
treed229ef04133f3436b2ffe28e924b82b41d63c7e6 /sys/kern/kern_synch.c
parent4b4ca199b889eb9f83636a4440711c3e46fc2e8b (diff)
Add tracing and dumping of "pointer to struct" syscall arguments for
structs timespec, timeval, sigaction, and rlimit. ok otto@ jsing@
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 6b7f80ab747..031a46dfaee 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.99 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.100 2012/03/19 09:05:39 guenther Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
@@ -435,6 +435,10 @@ sys___thrsleep(struct proc *p, void *v, register_t *retval)
*retval = error;
return (0);
}
+#ifdef KTRACE
+ if (KTRPOINT(p, KTR_STRUCT))
+ ktrabstimespec(p, &ats);
+#endif
if (timespeccmp(&ats, &now, <)) {
/* already passed: still do the unlock */