PERFORCE change 85785 for review
John Baldwin
jhb at FreeBSD.org
Mon Oct 24 10:49:17 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=85785
Change 85785 by jhb at jhb_slimer on 2005/10/24 17:48:34
Add a test for init'ing a spin lock not in the static order list.
Affected files ...
.. //depot/projects/smpng/sys/modules/crash/crash.c#21 edit
Differences ...
==== //depot/projects/smpng/sys/modules/crash/crash.c#21 (text+ko) ====
@@ -83,6 +83,18 @@
/* Events. */
+#ifdef WITNESS
+static void
+spinlock_test(void)
+{
+
+ bzero(&test1_mtx, sizeof(test1_mtx));
+ mtx_init(&test1_mtx, "test1", NULL, MTX_SPIN);
+ mtx_destroy(&test1_mtx);
+}
+CRASH_EVENT("spinlock init", spinlock_test);
+#endif
+
static void
refcount_test(void)
{
More information about the p4-projects
mailing list