[Crash-utility] Identifying structures related to memory , semaphores using crash utility

Rachita Kothiyal rachita at in.ibm.com
Tue Dec 12 05:38:38 UTC 2006


On Mon, Dec 11, 2006 at 08:19:32PM -0800, ram ba wrote:
> Hi Dave,
>              I am thankful to you for your immediate response. Since we know that symbols can be either structures, arrays, ordinary variables or functions, I want to fetch the values of only those symbols that are structures. Well when we execute sym -l  command, we get the second field as symbol type as shown below.
> 
>   ffffffff80107000 (T) level3_physmem_pgt
> ffffffff80108000 (t) rest_init
>   .....
> ffffffff80333000 (D) cpu_gdt_table
> ffffffff80333080 (d) gdt_end
>   .....
> ffffffff802d93a0 (A) __stop___ex_table
> ffffffff802da000 (A) __start_rodata
> ffffffff802da000 (R) linux_banner
> ffffffff802da0c0 (r) p.13105
> ffffffff802da100 (r) border
> 
>    I wanted to ensure whether we can use this information to identify whether a given symbol is a structure or a function or an ordinary variable.( can i assume that all symbols present in text segment are functions?)

Hi Ramya

I dont see how one could determine whether a symbol is a structure or not
just by looking at the sym -l output. This is the same information one can
get from the System.map file. Probably one way could be to query 'gdb' for
each of these symbols for their symbol type, as Dave had mentioned.

Thanks
Rachita




More information about the Crash-utility mailing list