Where can I find user-space registers in an x86-64 kernel dump?
thanks a lot !
--------------------------------------------------
From: "HATAYAMA Daisuke" <d.hatayama@jp.fujitsu.com>
Sent: Monday, March 05, 2012 9:05 AM
To: <duanshuidao@hotmail.com>
Cc: <crash-utility@redhat.com>
Subject: Re: [Crash-utility] [help]Where can I find user-space registers in
an x86-64 kernel dump?
Hello,
From: "hujun_hotmail" <duanshuidao@hotmail.com>
Subject: [Crash-utility] [help]Where can I find user-space registers in an
x86-64 kernel dump?
Date: Sat, 3 Mar 2012 21:58:55 +0800
Hi guys:
Where can I find user-space registers in an x86-64 kernel dump?
thanks!
Kernel performs saving user-space registers at several kernel entry
points such as system calls, interrupts and exceptions. Concretely,
look carefully into ./arch/x86/kernel/head_64.S.
Also crash-gcore-command would help you, which tries to collect such
registers. It's available here:
http://people.redhat.com/anderson/extensions.html.
Thanks.
HATAYAMA, Daisuke
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
03-05-2012, 01:25 PM
Dave Anderson
Where can I find user-space registers in an x86-64 kernel dump?
----- Original Message -----
> Hello,
>
> From: "hujun_hotmail" <duanshuidao@hotmail.com>
> Subject: [Crash-utility] [help]Where can I find user-space registers
> in an x86-64 kernel dump?
> Date: Sat, 3 Mar 2012 21:58:55 +0800
>
> > Hi guys:
> > Where can I find user-space registers in an x86-64 kernel dump?
> >
> > thanks!
>
> Kernel performs saving user-space registers at several kernel entry
> points such as system calls, interrupts and exceptions. Concretely,
> look carefully into ./arch/x86/kernel/head_64.S.
With respect to the crash utility and dumpfiles, user-space register contents
are captured into a "pt_regs" data structure that is stored at the top of each
user task's kernel stack upon entry into kernel-space (whether via syscall,
interrupt, or exception), and those registers are displayed by the "bt" command.
Dave
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility