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