Hi all,
My recent putback of:
6875845 ::whatis should be able to dump the bufctl/vmem seg
Changes the default behavior of ::whatis in the following ways:
1. By default, we will now automatically invoke "::bufctl -v" (or
"::vmem_seg -v") for kmem/vmem buffers with debugging information.
A new '-q' (quiet) flag suppresses these.
2. The output is slightly more regular, and we only display
"base+offset" if offset is non-zero.
For example:
old:
> ffffff017db42398::whatis; ffffff017db423a0::whatis
ffffff017db42398 is ffffff017db42398+0, bufctl ffffff017d54e468 allocated from
process_cache
ffffff017db423a0 is ffffff017db42398+8, bufctl ffffff017d54e468 allocated from
process_cache
>
new:
> ffffff017db42398::whatis -q; ffffff017db423a0::whatis -q
ffffff017db42398 is bufctl ffffff017d54e468 allocated from process_cache
ffffff017db423a0 is ffffff017db42398+8, bufctl ffffff017d54e468 allocated from
process_cache
> ffffff017db42398::whatis; ffffff017db4239a::whatis
ffffff017db42398 is allocated from process_cache:
ADDR BUFADDR TIMESTAMP THREAD
CACHE LASTLOG CONTENTS
ffffff017d54e468 ffffff017db42398 ea14c424a7 ffffff01533a7c20
ffffff0150d9ab18 ffffff0147af2e40 0
kmem_slab_alloc_impl+0x1b0
kmem_slab_alloc+0xae
kmem_cache_alloc+0x130
getproc+0x85
cfork+0xd6
forksys+0x29
ffffff017db4239a is ffffff017db42398+2, allocated from process_cache:
ADDR BUFADDR TIMESTAMP THREAD
CACHE LASTLOG CONTENTS
ffffff017d54e468 ffffff017db42398 ea14c424a7 ffffff01533a7c20
ffffff0150d9ab18 ffffff0147af2e40 0
kmem_slab_alloc_impl+0x1b0
kmem_slab_alloc+0xae
kmem_cache_alloc+0x130
getproc+0x85
cfork+0xd6
forksys+0x29
>
Cheers,
- jonathan