Mercurial > illumos > illumos-gate
comparison usr/src/uts/common/fs/zfs/zfs_debug.c @ 13765:9410cf539b11
backout 3006: causes 3046 (panics after mounting root)
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Wed, 01 Aug 2012 16:40:39 -0400 |
parents | 38b4aca480b3 |
children | e3a9ae14a119 |
comparison
equal
deleted
inserted
replaced
13764:38b4aca480b3 | 13765:9410cf539b11 |
---|---|
18 * | 18 * |
19 * CDDL HEADER END | 19 * CDDL HEADER END |
20 */ | 20 */ |
21 /* | 21 /* |
22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. | 22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2012 by Delphix. All rights reserved. | |
24 */ | 23 */ |
25 | |
26 | 24 |
27 #include <sys/zfs_context.h> | 25 #include <sys/zfs_context.h> |
28 | 26 |
29 list_t zfs_dbgmsgs; | 27 list_t zfs_dbgmsgs; |
30 int zfs_dbgmsg_size; | 28 int zfs_dbgmsg_size; |
48 int size = sizeof (zfs_dbgmsg_t) + strlen(zdm->zdm_msg); | 46 int size = sizeof (zfs_dbgmsg_t) + strlen(zdm->zdm_msg); |
49 kmem_free(zdm, size); | 47 kmem_free(zdm, size); |
50 zfs_dbgmsg_size -= size; | 48 zfs_dbgmsg_size -= size; |
51 } | 49 } |
52 mutex_destroy(&zfs_dbgmsgs_lock); | 50 mutex_destroy(&zfs_dbgmsgs_lock); |
53 ASSERT0(zfs_dbgmsg_size); | 51 ASSERT3U(zfs_dbgmsg_size, ==, 0); |
54 } | 52 } |
55 | 53 |
56 /* | 54 /* |
57 * Print these messages by running: | 55 * Print these messages by running: |
58 * echo ::zfs_dbgmsg | mdb -k | 56 * echo ::zfs_dbgmsg | mdb -k |
59 * | 57 * |
60 * Monitor these messages by running: | 58 * Monitor these messages by running: |
61 * dtrace -q -n 'zfs-dbgmsg{printf("%s\n", stringof(arg0))}' | 59 * dtrace -q -n 'zfs-dbgmsg{printf("%s\n", stringof(arg0))}' |
62 */ | 60 */ |
63 void | 61 void |