All of lore.kernel.org
 help / color / mirror / Atom feed
* dumping Xen stack
@ 2016-05-09 16:37 Zytaruk, Kelly
  2016-05-09 16:39 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Zytaruk, Kelly @ 2016-05-09 16:37 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

Does Xen have an equivalent function to the Linux dump_stack() function?

I am hitting a panic followed by a reboot and would like to find out where I am coming from.

Thanks,
Kelly

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: dumping Xen stack
  2016-05-09 16:37 dumping Xen stack Zytaruk, Kelly
@ 2016-05-09 16:39 ` Andrew Cooper
  2016-05-09 17:11   ` Zytaruk, Kelly
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2016-05-09 16:39 UTC (permalink / raw)
  To: Zytaruk, Kelly, xen-devel@lists.xen.org

On 09/05/16 17:37, Zytaruk, Kelly wrote:
> Does Xen have an equivalent function to the Linux dump_stack() function?
>
> I am hitting a panic followed by a reboot and would like to find out where I am coming from.

At the point of a crash, the stack should be printed on the console.

Alternatively, show_execution_state() at any point should dump the Xen
register/stack.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: dumping Xen stack
  2016-05-09 16:39 ` Andrew Cooper
@ 2016-05-09 17:11   ` Zytaruk, Kelly
  2016-05-09 17:13     ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Zytaruk, Kelly @ 2016-05-09 17:11 UTC (permalink / raw)
  To: Andrew Cooper, xen-devel@lists.xen.org



> -----Original Message-----
> From: Andrew Cooper [mailto:andrew.cooper3@citrix.com]
> Sent: Monday, May 09, 2016 12:40 PM
> To: Zytaruk, Kelly; xen-devel@lists.xen.org
> Subject: Re: [Xen-devel] dumping Xen stack
> 
> On 09/05/16 17:37, Zytaruk, Kelly wrote:
> > Does Xen have an equivalent function to the Linux dump_stack() function?
> >
> > I am hitting a panic followed by a reboot and would like to find out where I am
> coming from.
> 
> At the point of a crash, the stack should be printed on the console.

The only thing I am seeing on the console is the panic message followed by the system will reboot in 5 sec.
> 
> Alternatively, show_execution_state() at any point should dump the Xen
> register/stack.

I looked up show_execution_state() and show_trace() and they both require a pointer to registers.
I am hitting a panic during boot in queue_invalidate_wait() in .../drivers/passthrough/vtd/qinval.c .  I am not sure how to get the register pointer from here.

> 
> ~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: dumping Xen stack
  2016-05-09 17:11   ` Zytaruk, Kelly
@ 2016-05-09 17:13     ` Andrew Cooper
  2016-05-09 17:58       ` Zytaruk, Kelly
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2016-05-09 17:13 UTC (permalink / raw)
  To: Zytaruk, Kelly, xen-devel@lists.xen.org

On 09/05/16 18:11, Zytaruk, Kelly wrote:
>
>> -----Original Message-----
>> From: Andrew Cooper [mailto:andrew.cooper3@citrix.com]
>> Sent: Monday, May 09, 2016 12:40 PM
>> To: Zytaruk, Kelly; xen-devel@lists.xen.org
>> Subject: Re: [Xen-devel] dumping Xen stack
>>
>> On 09/05/16 17:37, Zytaruk, Kelly wrote:
>>> Does Xen have an equivalent function to the Linux dump_stack() function?
>>>
>>> I am hitting a panic followed by a reboot and would like to find out where I am
>> coming from.
>>
>> At the point of a crash, the stack should be printed on the console.
> The only thing I am seeing on the console is the panic message followed by the system will reboot in 5 sec.

Ah - plain panic()s don't automatically dump register/stack information.

>> Alternatively, show_execution_state() at any point should dump the Xen
>> register/stack.
> I looked up show_execution_state() and show_trace() and they both require a pointer to registers.
> I am hitting a panic during boot in queue_invalidate_wait() in .../drivers/passthrough/vtd/qinval.c .  I am not sure how to get the register pointer from here.

Oops sorry - I meant dump_execution_state() which takes no parameters.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: dumping Xen stack
  2016-05-09 17:13     ` Andrew Cooper
@ 2016-05-09 17:58       ` Zytaruk, Kelly
  0 siblings, 0 replies; 5+ messages in thread
From: Zytaruk, Kelly @ 2016-05-09 17:58 UTC (permalink / raw)
  To: Andrew Cooper, xen-devel@lists.xen.org



> -----Original Message-----
> From: Andrew Cooper [mailto:andrew.cooper3@citrix.com]
> Sent: Monday, May 09, 2016 1:14 PM
> To: Zytaruk, Kelly; xen-devel@lists.xen.org
> Subject: Re: [Xen-devel] dumping Xen stack
> 
> On 09/05/16 18:11, Zytaruk, Kelly wrote:
> >
> >> -----Original Message-----
> >> From: Andrew Cooper [mailto:andrew.cooper3@citrix.com]
> >> Sent: Monday, May 09, 2016 12:40 PM
> >> To: Zytaruk, Kelly; xen-devel@lists.xen.org
> >> Subject: Re: [Xen-devel] dumping Xen stack
> >>
> >> On 09/05/16 17:37, Zytaruk, Kelly wrote:
> >>> Does Xen have an equivalent function to the Linux dump_stack() function?
> >>>
> >>> I am hitting a panic followed by a reboot and would like to find out
> >>> where I am
> >> coming from.
> >>
> >> At the point of a crash, the stack should be printed on the console.
> > The only thing I am seeing on the console is the panic message followed by the
> system will reboot in 5 sec.
> 
> Ah - plain panic()s don't automatically dump register/stack information.
> 
> >> Alternatively, show_execution_state() at any point should dump the
> >> Xen register/stack.
> > I looked up show_execution_state() and show_trace() and they both require a
> pointer to registers.
> > I am hitting a panic during boot in queue_invalidate_wait() in
> .../drivers/passthrough/vtd/qinval.c .  I am not sure how to get the register
> pointer from here.
> 
> Oops sorry - I meant dump_execution_state() which takes no parameters.

That is exactly what I am looking for.  Thx.

> 
> ~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-05-09 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 16:37 dumping Xen stack Zytaruk, Kelly
2016-05-09 16:39 ` Andrew Cooper
2016-05-09 17:11   ` Zytaruk, Kelly
2016-05-09 17:13     ` Andrew Cooper
2016-05-09 17:58       ` Zytaruk, Kelly

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.