On Sun, 30 Apr 2017, Ryota Ozaki wrote:
Index: locks.c =================================================================== RCS file: /cvsroot/src/sys/rump/librump/rumpkern/locks.c,v retrieving revision 1.73 diff -u -p -r1.73 locks.c --- locks.c 27 Jan 2017 09:50:47 -0000 1.73 +++ locks.c 30 Apr 2017 03:16:58 -0000 @@ -183,6 +183,17 @@ mutex_exit(kmutex_t *mtx) __strong_alias(mutex_spin_exit,mutex_exit); int +mutex_ownable(kmutex_t *mtx) +{ + +#ifdef RUMP_LOCKDEBUGYou don't need the RUMP_ prefix. See sys/rump/Makefile.rump.
Thanks for looking - I have removed the prefix.
+ mutex_enter(mtx); + mutex_exit(mtx); +#endif + return 1; +} + +int mutex_owned(kmutex_t *mtx) {
+------------------+--------------------------+----------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org | +------------------+--------------------------+----------------------------+