<div>Hi Dave,</div>  <div>           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.</div>  <div> </div>  <div>ffffffff80107000 <FONT style="BACKGROUND-COLOR: #d0d0d0">(T)</FONT> level3_physmem_pgt<BR>ffffffff80108000 <FONT style="BACKGROUND-COLOR: #d0d0d0">(t)</FONT> rest_init</div>  <div>.....<BR>ffffffff80333000 <FONT style="BACKGROUND-COLOR: #d0d0d0">(D)</FONT> cpu_gdt_table<BR>ffffffff80333080 <FONT style="BACKGROUND-COLOR: #d0d0d0">(d)</FONT> gdt_end</div>  <div>.....<BR>ffffffff802d93a0 (<FONT style="BACKGROUND-COLOR: #d0d0d0">A)</FONT> __stop___ex_table<BR>ffffffff802da000 (<FONT style="BACKGROUND-COLOR: #d0d0d0">A)</FONT>
 __start_rodata<BR>ffffffff802da000 (<FONT style="BACKGROUND-COLOR: #d0d0d0">R)</FONT> linux_banner<BR>ffffffff802da0c0 <FONT style="BACKGROUND-COLOR: #d0d0d0">(r)</FONT> p.13105<BR>ffffffff802da100 <FONT style="BACKGROUND-COLOR: #d0d0d0">(r)</FONT> border<BR></div>  <div> 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?)</div>  <div> </div>  <div>         Also I wanted to know if there is any command wherein I can get a listing of all symbols that are related to memory, semaphores and tasks. </div>  <div>Thanks,</div>  <div>Ramya<BR><BR><B><I>Dave Anderson <anderson@redhat.com></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">ram ba wrote:   <BLOCKQUOTE
 TYPE="CITE">Hi all,I was running crash to analyse a vmcore generated by a  2.6.16.21-0.8.uis.1-smp kernel ( on x86_64 architecture). During this I came to know that we get a list of all kernel symbols with the help of "sym -l" command. With the help of "whatis" command we can know the symbol definition.But applying "whatis" command to each symbol and checking its definition appears to be tedious. Is there any other way to identify as to which symbols represent structures?        Also I wanted to isolate the structures related to memory, semaphores, tasks. Since I am new to crash utility, I couldn't get much information. Could you please provide some suggestions as to how to go about it.Thanks,Ramya   <HR SIZE=1>  Need a quick answer? Get one in minutes from people who know. Ask your question on <A href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx">Yahoo!
 Answers</A>.</BLOCKQUOTE>  <div><BR>Ask "Yahoo! Answers"?    ;-)   <div>Anyway, it's not clear to me what you're asking for?   <div>If a symbol-name is an instance of a data structure, or an array of data <BR>structures, you can simply enter:   <div>  crash> p symbol-name   <div>If the symbol refers to an array of structures, you can pick <BR>an individual structure by its index:   <div>  crash> p symbol-name[index]   <div>Or if the symbol is a pointer to a data strucutre, you display <BR>what it points to with:   <div>  crash> p *symbol-name   <div>The above simply take advantage of the embedded gdb module <BR>pre-determining what the data type of a symbol is, and then printing it.   <div>When you ask that you want to "isolate the structures related to <BR>memory, semaphores, tasks", again, I don't understand what you <BR>are asking for.   <div>I'm probably missing your point, but, in any case, there's certainly no <BR>existing
 command that walks the symbol list and tells you what kind of <BR>data structure each one is -- if that's what you're expecting.   <div>Depending upon what you want, you could probably (1) cobble together <BR>an input script that you can in turn feed to crash, or (2) write an "extend" <BR>module that gathers the data that you specifically need.   <div>Dave <BR>  <BR>  --<BR>Crash-utility mailing list<BR>Crash-utility@redhat.com<BR>https://www.redhat.com/mailman/listinfo/crash-utility<BR></div></BLOCKQUOTE><BR><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com