Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Crash Utility (http://www.linux-archive.org/crash-utility/)
-   -   Where can I find user-space registers in an x86-64 kernel dump? (http://www.linux-archive.org/crash-utility/640819-where-can-i-find-user-space-registers-x86-64-kernel-dump.html)

"hujun_hotmail" 03-05-2012 04:33 AM

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

Dave Anderson 03-05-2012 01:25 PM

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


All times are GMT. The time now is 06:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.