[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm: print domid as part of debug trap
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1340724229 -3600 # Node ID 44653d49797fcf867da74cfd264437d4881d7696 # Parent 57ba8b1ba755c1c8b668ae94a0b3201212544b6a arm: print domid as part of debug trap Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 57ba8b1ba755 -r 44653d49797f xen/arch/arm/traps.c --- a/xen/arch/arm/traps.c Tue Jun 26 16:23:48 2012 +0100 +++ b/xen/arch/arm/traps.c Tue Jun 26 16:23:49 2012 +0100 @@ -388,25 +388,26 @@ static arm_hypercall_t *arm_hypercall_ta static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code) { uint32_t reg, *r; - + uint32_t domid = current->domain->domain_id; switch ( code ) { case 0xe0 ... 0xef: reg = code - 0xe0; r = ®s->r0 + reg; - printk("R%d = %#010"PRIx32" at %#010"PRIx32"\n", reg, *r, regs->pc); + printk("DOM%d: R%d = %#010"PRIx32" at %#010"PRIx32"\n", + domid, reg, *r, regs->pc); break; case 0xfd: - printk("Reached %08"PRIx32"\n", regs->pc); + printk("DOM%d: Reached %#010"PRIx32"\n", domid, regs->pc); break; case 0xfe: printk("%c", (char)(regs->r0 & 0xff)); break; case 0xff: - printk("DEBUG\n"); + printk("DOM%d: DEBUG\n", domid); show_execution_state(regs); break; default: - panic("Unhandled debug trap %#x\n", code); + panic("DOM%d: Unhandled debug trap %#x\n", domid, code); break; } } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |