summaryrefslogtreecommitdiff
path: root/usr/src/cmd/mdb/common/modules/genunix/genunix.c
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2019-11-11 15:28:43 -0500
committerDan McDonald <danmcd@joyent.com>2019-11-21 10:57:15 -0500
commitd15801816cc716b56ada92df72ee04b7b891291c (patch)
tree936eb449b2ed21a14238aadb576ca31895ef75ea /usr/src/cmd/mdb/common/modules/genunix/genunix.c
parente7253420989203a0028f982d437bf50c3140eba6 (diff)
downloadillumos-joyent-d15801816cc716b56ada92df72ee04b7b891291c.tar.gz
11927 Log, or optionally panic, on zero-length kmem allocations
Reviewed by: Dan McDonald <danmcd@joyent.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/cmd/mdb/common/modules/genunix/genunix.c')
-rw-r--r--usr/src/cmd/mdb/common/modules/genunix/genunix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/mdb/common/modules/genunix/genunix.c b/usr/src/cmd/mdb/common/modules/genunix/genunix.c
index 9bd74ff0dd..f8d2de5f12 100644
--- a/usr/src/cmd/mdb/common/modules/genunix/genunix.c
+++ b/usr/src/cmd/mdb/common/modules/genunix/genunix.c
@@ -4293,8 +4293,9 @@ static const mdb_dcmd_t dcmds[] = {
{ "bufctl", ":[-vh] [-a addr] [-c caller] [-e earliest] [-l latest] "
"[-t thd]", "print or filter a bufctl", bufctl, bufctl_help },
{ "freedby", ":", "given a thread, print its freed buffers", freedby },
- { "kmalog", "?[ fail | slab ]",
- "display kmem transaction log and stack traces", kmalog },
+ { "kmalog", "?[ fail | slab | zerosized ]",
+ "display kmem transaction log and stack traces for specified type",
+ kmalog },
{ "kmastat", "[-kmg]", "kernel memory allocator stats",
kmastat },
{ "kmausers", "?[-ef] [cache ...]", "current medium and large users "