Date: Mon, 24 Oct 2005 17:49:16 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 85785 for review Message-ID: <200510241749.j9OHnGbZ029701@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85785 Change 85785 by jhb@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510241749.j9OHnGbZ029701>