From mboxrd@z Thu Jan 1 00:00:00 1970 From: nilesh.tayade@netscout.com (nilesh) Date: Tue, 04 Jan 2011 12:14:56 +0530 Subject: functions about dump backtrace function names in mips arch In-Reply-To: References: Message-ID: <1294123496.6697.3.camel@nilesh-desktop> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Mon, 2011-01-03 at 22:32 +0800, loody wrote: > hi all: > > 2011/1/3 Sowmya Sridharan : > > > > Hi, > > > > I was able to check it in 2.6.36 version of kernel, and it is defined in > > traps.c. > > http://lxr.linux.no/linux+v2.6.36/arch/mips/kernel/traps.c#L205 > > > > dump_stack() calls show_backtrace function which had been show_trace in the > > earlier kernel versions. [...] > > > > [...] > > Regards, > > Sowmya > thanks for your kind help, that is what I want. > previously, I only see the address instead of function name, but after > I select CONFIG_KALLSYMS as Y, I can see the function names also. > BTW, what is the mechanism that kernel take to find out the function name? Enabling the config option, it allows to build the symbol table for kernel. It uses /proc/kallsyms. Below links could help: http://tldp.org/HOWTO/Module-HOWTO/x627.html http://fixunix.com/kernel/134739-proc-kallsyms-symbol-size.html > Regards, > miloody -- Thanks, Nilesh