Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Unbreak builds of rump libraries w...



details:   https://anonhg.NetBSD.org/src/rev/a8ec6bbc489a
branches:  trunk
changeset: 350924:a8ec6bbc489a
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Jan 27 09:50:47 2017 +0000

description:
Unbreak builds of rump libraries with RUMP_LOCKDEBUG

diffstat:

 sys/rump/librump/rumpkern/locks.c |  26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r c32272308162 -r a8ec6bbc489a sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Fri Jan 27 05:14:54 2017 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Fri Jan 27 09:50:47 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks.c,v 1.72 2016/01/26 23:12:17 pooka Exp $ */
+/*     $NetBSD: locks.c,v 1.73 2017/01/27 09:50:47 ozaki-r Exp $       */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.72 2016/01/26 23:12:17 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.73 2017/01/27 09:50:47 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -61,18 +61,22 @@
        NULL
 };
 
-#define ALLOCK(lock, ops)              \
-    lockdebug_alloc(lock, ops, (uintptr_t)__builtin_return_address(0))
+#define ALLOCK(lock, ops)                              \
+    lockdebug_alloc(__func__, __LINE__, lock, ops,     \
+    (uintptr_t)__builtin_return_address(0))
 #define FREELOCK(lock)                 \
-    lockdebug_free(lock)
-#define WANTLOCK(lock, shar)   \
-    lockdebug_wantlock(lock, (uintptr_t)__builtin_return_address(0), shar)
-#define LOCKED(lock, shar)             \
-    lockdebug_locked(lock, NULL, (uintptr_t)__builtin_return_address(0), shar)
+    lockdebug_free(__func__, __LINE__, lock)
+#define WANTLOCK(lock, shar)                           \
+    lockdebug_wantlock(__func__, __LINE__, lock,       \
+    (uintptr_t)__builtin_return_address(0), shar)
+#define LOCKED(lock, shar)                             \
+    lockdebug_locked(__func__, __LINE__, lock, NULL,   \
+    (uintptr_t)__builtin_return_address(0), shar)
 #define UNLOCKED(lock, shar)           \
-    lockdebug_unlocked(lock, (uintptr_t)__builtin_return_address(0), shar)
+    lockdebug_unlocked(__func__, __LINE__, lock,       \
+    (uintptr_t)__builtin_return_address(0), shar)
 #define BARRIER(lock, slp)             \
-    lockdebug_barrier(lock, slp)
+    lockdebug_barrier(__func__, __LINE__, lock, slp)
 #else
 #define ALLOCK(a, b)
 #define FREELOCK(a)



Home | Main Index | Thread Index | Old Index