From d15801816cc716b56ada92df72ee04b7b891291c Mon Sep 17 00:00:00 2001 From: Bryan Cantrill Date: Mon, 11 Nov 2019 15:28:43 -0500 Subject: 11927 Log, or optionally panic, on zero-length kmem allocations Reviewed by: Dan McDonald Reviewed by: Jason King Approved by: Gordon Ross --- usr/src/cmd/mdb/common/modules/genunix/genunix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr/src/cmd/mdb/common/modules/genunix/genunix.c') 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 " -- cgit v1.2.3