From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Akio Takebe <takebe_akio@jp.fujitsu.com>,
xen-ia64-devel <xen-ia64-devel@lists.xensource.com>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [Patch][0/2]implement dump_execution_state() on ia64
Date: Thu, 27 Mar 2008 19:22:07 +0000 [thread overview]
Message-ID: <C411A45F.15740%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <82C8902F1E97A4takebe_akio@jp.fujitsu.com>
On 27/3/08 17:22, "Akio Takebe" <takebe_akio@jp.fujitsu.com> wrote:
>> There is already a function which does what you want (i.e., takes a
>> cpu_user_regs pointer) -- it's called show_execution_state().
>>
>> On x86 we implement dump_execution_state() by forcing an exception (by
>> executing an invalid opcode) and dumping the calltrace from within the
>> exception handler. This works because the exception handler has a
>> cpu_user_regs pointer and hence can call show_execution_state(). We use the
>> same trick for handling BUG() and ASSERT(). The code concerned is in
>> arch/x86/traps.c:do_invalid_op().
> On x86, does "xm debug-key d" make system hang?
> Or it just uses the exception handler, not hangup?
It works fine. It uses dump_execution_state(), as you have seen when you
modified it, and hence it does indeed force an exception on each CPU in
turn, and the exception handler dumps the cpu_user_regs (also known as
'pt_regs' in ia64) pointer that it receives.
-- Keir
prev parent reply other threads:[~2008-03-27 19:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 13:05 [Patch][0/2]implement dump_execution_state() on ia64 Akio Takebe
2008-03-27 13:09 ` [Patch][1/2]implement " Akio Takebe
2008-03-27 13:10 ` [Patch][2/2]implement " Akio Takebe
2008-03-27 14:47 ` [Patch][0/2]implement " Keir Fraser
2008-03-27 16:56 ` [Xen-devel] " Akio Takebe
2008-03-27 17:04 ` Keir Fraser
2008-03-27 17:22 ` [Xen-devel] " Akio Takebe
2008-03-27 19:22 ` Keir Fraser [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C411A45F.15740%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=takebe_akio@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ia64-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.