summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2015-07-31 07:14:02 +0000
committerBryan Cantrill <bryan@joyent.com>2015-07-31 07:14:02 +0000
commit92d00144d1e2f01ebc15a0099c0a06a8210c7ccb (patch)
tree99837be542368a26d9213697d282544783534a52 /usr/src/cmd
parent3ba00567d296bc2c7c16b9fe6cb2976af0ec2c0b (diff)
downloadillumos-joyent-92d00144d1e2f01ebc15a0099c0a06a8210c7ccb.tar.gz
OS-4297 zero-sized allocations should be logged but not warned about
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/mdb/common/modules/genunix/kmem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/mdb/common/modules/genunix/kmem.c b/usr/src/cmd/mdb/common/modules/genunix/kmem.c
index f1693d7bf6..0df368d70c 100644
--- a/usr/src/cmd/mdb/common/modules/genunix/kmem.c
+++ b/usr/src/cmd/mdb/common/modules/genunix/kmem.c
@@ -24,7 +24,7 @@
*/
/*
- * Copyright 2011 Joyent, Inc. All rights reserved.
+ * Copyright (c) 2015, Joyent, Inc. All rights reserved.
* Copyright (c) 2012 by Delphix. All rights reserved.
*/
@@ -3896,6 +3896,8 @@ kmalog(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
logname = "kmem_failure_log";
else if (strcmp(argv->a_un.a_str, "slab") == 0)
logname = "kmem_slab_log";
+ else if (strcmp(argv->a_un.a_str, "zerosized") == 0)
+ logname = "kmem_zerosized_log";
else
return (DCMD_USAGE);
}