All of lore.kernel.org
 help / color / mirror / Atom feed
* how to dump calling stack in Xen?
@ 2005-07-21 21:50 Xin Zhao
  2005-07-22  1:22 ` Gerd Knorr
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Zhao @ 2005-07-21 21:50 UTC (permalink / raw)
  To: xen-devel

I am trying to dump calling stack in Xen in my codes instead of using
kgdb like tools. oprofile seems to be one possibility.

While oprofile is already included in kernel 2.6.11, I don't
see this option when I do "make ARCH=xen menuconfig".  Actually I always
see the call stack dump after I crash the kernel. So I think there are
some codes in kernel that can dump the stack information. But I haven't
find them. :)

Can someone kindly tell me how to do this? Thanks in advance!

-x

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

* Re: how to dump calling stack in Xen?
  2005-07-21 21:50 how to dump calling stack in Xen? Xin Zhao
@ 2005-07-22  1:22 ` Gerd Knorr
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Knorr @ 2005-07-22  1:22 UTC (permalink / raw)
  To: Xin Zhao; +Cc: xen-devel

Xin Zhao <zhaoxin@eecs.umich.edu> writes:

> While oprofile is already included in kernel 2.6.11, I don't
> see this option when I do "make ARCH=xen menuconfig".  Actually I always
> see the call stack dump after I crash the kernel. So I think there are
> some codes in kernel that can dump the stack information. But I haven't
> find them. :)

linux kernel has a "dump_stack()" function, that helps at least for
the linux kernel context.  xen itself hasn't something like that, you
only get the addresses, not the symbols ...

  Gerd

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

end of thread, other threads:[~2005-07-22  1:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21 21:50 how to dump calling stack in Xen? Xin Zhao
2005-07-22  1:22 ` Gerd Knorr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.