JWW SPAM-bad-from [Crash-utility] enhance bt command

Dave Anderson anderson at redhat.com
Mon Mar 3 16:19:40 UTC 2008


Ming Zhang wrote:
> On Mon, 2008-03-03 at 09:19 -0500, Dave Anderson wrote:
>> I'm not sure whether cluttering the bt -f command output would
>> be all that worthwhile, but I'm thinking that this request may have
>> some merit with respect to the "rd" command.  Currently the
>> "rd -s" option recognizes and translates kernel symbols that it
>> finds in the raw memory output.  Maybe something like a "-S"
>> option could do that -- plus also recognize kernel virtual memory
>> addresses that come from the slab cache, and alternatively display
>> the slab cache namestring in some recognizable manner, i.e. bracketed,
>> or something like to that effect.
>>
>> Then since "bt -f" displays the block of memory associated with
>> each stack frame, you could easily transfer the stack address
>> to a "rd -S [stack-address] [count]" command.
> 
> yes. it will be great if we can have a rd -S!
> 

Apply the attached patch and see what you think.  The "rd -S"
option supplements "-s" by also recognizing memory from slab
caches -- and alternatively displaying the slab cache name
in brackets.

Thanks,
   Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmem-S.patch
Type: text/x-patch
Size: 5026 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20080303/c8f8d308/attachment.bin>


More information about the Crash-utility mailing list