[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call stack trace



"fred xvii" <fredxvii@hotmail.com> writes:

> Hi,
>
> I am writing a module, and I need some debugging. I'd like to print
> the "call stack", like when an oops happens.
>
> I've looked in the source tree, and found my needs in
> arch/i386/kernel/traps.c with show_trace(). Unfortunately, when trying
> to insmod my module, the loader says that this symbol is unresolved.
>
> Is there a way to have access to that function ?
>
>
> More generally, what are the dynamic tools for kernel tracing (except uml) ?
>
> Thanks for your advice.

Which kernel are you using?  You can export the symbol.  In 2.5.73, I
add an EXPORT_SYMBOL line to kernel/ksyms.c.

-- 
--Ed L Cashin

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/