Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Stack organization on Alpha
@ 1997-03-14  5:00 Benoit Jardin
  1997-03-16  5:00 ` Dirk Grunwald
  0 siblings, 1 reply; 2+ messages in thread
From: Benoit Jardin @ 1997-03-14  5:00 UTC (permalink / raw)



I am currently trying to have a process dump the stack traces of its
threads at runtime.

This mechanism is to be embedded within a multithreaded middleware
application that requires responsivness.  Currently, I have a
dedicated thread that detect when the application is not being
responsive and that core dumps it in order to be able to later analyse
what was hapenning at that particular time under a debugger.

In order to improve this mechanism, I now need to be able to analyse
multiple stack traces taken at regular intervals when the system is
not being responsive.

I achieve this by retrieving through /proc the list of threads running
in the process along with and their associated registers.  Now using
these registers, I need to be able to walk up the stack in order to
dump it in my log files.  This is currently working fine for Sparc.

Now, porting it to Alpha, I am encountering some problems in
understanding how to walk up  the stack frames from one function call
to another.  I have tried to look at the gdb source code, but after
spending a day on it, I'm afraid it will take me quite a while to
understand how they do.

So if any of you has already investigated these Alpha stacks an can
help me with it, that would be great.  Otherwise, I guess I will have
to restrict myself in just printing the current PC of all the threads
without dumping the whole stacks...

Thanks,

-- Benoit Jardin




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-03-16  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-14  5:00 Stack organization on Alpha Benoit Jardin
1997-03-16  5:00 ` Dirk Grunwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox