* [Q] MIPS: How to record the user stack backtrace in the kernel
@ 2010-06-04 22:22 Deng-Cheng Zhu
2010-06-05 1:22 ` Ray Dudu
2010-06-06 22:02 ` Maciej W. Rozycki
0 siblings, 2 replies; 3+ messages in thread
From: Deng-Cheng Zhu @ 2010-06-04 22:22 UTC (permalink / raw)
To: linux-mips; +Cc: dengcheng.zhu
Hi, developers
In the kernel, we don't have frame unwinder to work on the user stack.
Given the different possible compiler flags, getting the backtrace for the
user stack is especially challenging. Certainly, I don't want symbols -
only to get a list of return addresses. Do you have any comments?
Thanks!
Deng-Cheng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] MIPS: How to record the user stack backtrace in the kernel
2010-06-04 22:22 [Q] MIPS: How to record the user stack backtrace in the kernel Deng-Cheng Zhu
@ 2010-06-05 1:22 ` Ray Dudu
2010-06-06 22:02 ` Maciej W. Rozycki
1 sibling, 0 replies; 3+ messages in thread
From: Ray Dudu @ 2010-06-05 1:22 UTC (permalink / raw)
To: Deng-Cheng Zhu; +Cc: linux-mips
Hi,
I'm looking for the same thing, please comment it.
04.06.10 17:22, Deng-Cheng Zhu написав(ла):
> Hi, developers
>
>
> In the kernel, we don't have frame unwinder to work on the user stack.
> Given the different possible compiler flags, getting the backtrace for the
> user stack is especially challenging. Certainly, I don't want symbols -
> only to get a list of return addresses. Do you have any comments?
>
>
> Thanks!
>
> Deng-Cheng
>
--
Best regards,
RD18-UANIC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] MIPS: How to record the user stack backtrace in the kernel
2010-06-04 22:22 [Q] MIPS: How to record the user stack backtrace in the kernel Deng-Cheng Zhu
2010-06-05 1:22 ` Ray Dudu
@ 2010-06-06 22:02 ` Maciej W. Rozycki
1 sibling, 0 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2010-06-06 22:02 UTC (permalink / raw)
To: Deng-Cheng Zhu; +Cc: linux-mips
On Sat, 5 Jun 2010, Deng-Cheng Zhu wrote:
> In the kernel, we don't have frame unwinder to work on the user stack.
> Given the different possible compiler flags, getting the backtrace for the
> user stack is especially challenging. Certainly, I don't want symbols -
> only to get a list of return addresses. Do you have any comments?
You can't do that, because, unlike some other platforms, MIPS ABIs do not
use a fixed frame layout. You need at least symbol information or,
preferably, debug records to be able to construct a backtrace. These can
be attached to the ELF executables used and are not easily reachable from
the kernel.
What's the point anyway? Just use GDB or other widely available user
tools.
Maciej
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-06 22:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 22:22 [Q] MIPS: How to record the user stack backtrace in the kernel Deng-Cheng Zhu
2010-06-05 1:22 ` Ray Dudu
2010-06-06 22:02 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).