WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] make x86-64 register dump readable

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] make x86-64 register dump readable
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 30 Aug 2005 17:29:22 +0200
Delivery-date: Tue, 30 Aug 2005 15:26:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On an 80-columns-wide terminal, the register dump wrapped in an ugly way
(as
its basic structure was appearantly taken from i386 code).

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

---
/home/jbeulich/src/xen/2005-08-22/xen/arch/x86/x86_64/traps.c   2005-08-21
02:34:41.000000000 +0200
+++ 2005-08-22/xen/arch/x86/x86_64/traps.c      2005-08-26
09:58:11.000000000 +0200
@@ -20,14 +20,18 @@ void show_registers(struct cpu_user_regs
     if ( !GUEST_MODE(regs) )
         print_symbol(" %s", regs->rip);
     printk("\nEFLAGS: %016lx\n", regs->eflags);
-    printk("rax: %016lx   rbx: %016lx   rcx: %016lx   rdx: %016lx\n",
-           regs->rax, regs->rbx, regs->rcx, regs->rdx);
-    printk("rsi: %016lx   rdi: %016lx   rbp: %016lx   rsp: %016lx\n",
-           regs->rsi, regs->rdi, regs->rbp, regs->rsp);
-    printk("r8:  %016lx   r9:  %016lx   r10: %016lx   r11: %016lx\n",
-           regs->r8,  regs->r9,  regs->r10, regs->r11);
-    printk("r12: %016lx   r13: %016lx   r14: %016lx   r15: %016lx\n",
-           regs->r12, regs->r13, regs->r14, regs->r15);
+    printk("rax: %016lx   rcx: %016lx   rdx: %016lx\n",
+           regs->rax, regs->rcx, regs->rdx);
+    printk("rbx: %016lx   rsp: %016lx   rbp: %016lx\n",
+           regs->rbx, regs->rsp, regs->rbp);
+    printk("rsi: %016lx   rdi: %016lx    r8: %016lx\n",
+           regs->rsi, regs->rdi, regs->r8);
+    printk(" r9: %016lx   r10: %016lx   r11: %016lx\n",
+           regs->r9, regs->r10, regs->r11);
+    printk("r12: %016lx   r13: %016lx   r14: %016lx\n",
+           regs->r12, regs->r13, regs->r14);
+    printk("r15: %016lx"/*"    fs: %016lx    gs: %016lx"*/"\n",
+           regs->r15/*, ->fs_base, ->gs_base_user*/);
 
     if ( GUEST_MODE(regs) )
         show_guest_stack();

Attachment: xen-x86_64-readable-register-dump.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] make x86-64 register dump readable, Jan Beulich <=