[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 09/38] arm: print domid as part of debug trap
On Fri, 1 Jun 2012, Ian Campbell wrote: > Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > xen/arch/arm/traps.c | 11 ++++++----- > 1 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c > index 5d8b7f9..40bb375 100644 > --- a/xen/arch/arm/traps.c > +++ b/xen/arch/arm/traps.c > @@ -388,25 +388,26 @@ static arm_hypercall_t *arm_hypercall_table[] = { > 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; > } > } > -- > 1.7.9.1 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |