ia64/xen-unstable

changeset 10428:df67fa9b1376

[IA64] fix is_kernel_text in xenctx and show more registers

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Mon Jun 19 13:35:49 2006 -0600 (2006-06-19)
parents b16063ae0703
children 602f5965e217
files tools/xentrace/xenctx.c
line diff
     1.1 --- a/tools/xentrace/xenctx.c	Mon Jun 19 13:26:45 2006 -0600
     1.2 +++ b/tools/xentrace/xenctx.c	Mon Jun 19 13:35:49 2006 -0600
     1.3 @@ -72,6 +72,9 @@ int is_kernel_text(size_t addr)
     1.4  #elif defined (__x86_64__)
     1.5      if (symbol_table == NULL)
     1.6          return (addr > 0xffffffff80000000UL);
     1.7 +#elif defined (__ia64__)
     1.8 +    if (symbol_table == NULL)
     1.9 +        return (addr > 0xa000000000000000UL);
    1.10  #endif
    1.11  
    1.12      if (addr >= kernel_stext &&
    1.13 @@ -269,24 +272,44 @@ void print_ctx(vcpu_guest_context_t *ctx
    1.14  {
    1.15      struct cpu_user_regs *regs = &ctx1->user_regs;
    1.16  
    1.17 -    printf("iip: %016lx ", regs->cr_iip);
    1.18 +    printf("iip:  %016lx  ", regs->cr_iip);
    1.19      print_symbol(regs->cr_iip);
    1.20      printf("\n");
    1.21 -    printf(" sp: %016lx  ", regs->r12);
    1.22 -    printf(" b0: %016lx\n", regs->b0);
    1.23 -    printf(" tp: %016lx  ", regs->r13);
    1.24 -    printf(" r1: %016lx\n", regs->r1);
    1.25 -
    1.26 +    printf("psr:  %016lu  ", regs->cr_ipsr);
    1.27 +    printf(" b0:  %016lx\n", regs->b0);
    1.28  
    1.29 -    printf(" r2: %016lx  ", regs->r2);
    1.30 -    printf(" r3: %016lx\n", regs->r3);
    1.31 -    printf(" r4: %016lx  ", regs->r4);
    1.32 -    printf(" r5: %016lx\n", regs->r5);
    1.33 -
    1.34 -    printf(" r6: %016lx  ", regs->r6);
    1.35 -    printf(" r7: %016lx\n", regs->r7);
    1.36 -    printf(" r8: %016lx  ", regs->r8);
    1.37 -    printf(" r9: %016lx\n", regs->r9);
    1.38 +    printf(" r1:  %016lx\n", regs->r1);
    1.39 +    printf(" r2:  %016lx  ", regs->r2);
    1.40 +    printf(" r3:  %016lx\n", regs->r3);
    1.41 +    printf(" r4:  %016lx  ", regs->r4);
    1.42 +    printf(" r5:  %016lx\n", regs->r5);
    1.43 +    printf(" r6:  %016lx  ", regs->r6);
    1.44 +    printf(" r7:  %016lx\n", regs->r7);
    1.45 +    printf(" r8:  %016lx  ", regs->r8);
    1.46 +    printf(" r9:  %016lx\n", regs->r9);
    1.47 +    printf(" r10: %016lx  ", regs->r10);
    1.48 +    printf(" r11: %016lx\n", regs->r11);
    1.49 +    printf(" sp:  %016lx  ", regs->r12);
    1.50 +    printf(" tp:  %016lx\n", regs->r13);
    1.51 +    printf(" r14: %016lx  ", regs->r14);
    1.52 +    printf(" r15: %016lx\n", regs->r15);
    1.53 +    printf(" r16: %016lx  ", regs->r16);
    1.54 +    printf(" r17: %016lx\n", regs->r17);
    1.55 +    printf(" r18: %016lx  ", regs->r18);
    1.56 +    printf(" r19: %016lx\n", regs->r19);
    1.57 +    printf(" r20: %016lx  ", regs->r20);
    1.58 +    printf(" r21: %016lx\n", regs->r21);
    1.59 +    printf(" r22: %016lx  ", regs->r22);
    1.60 +    printf(" r23: %016lx\n", regs->r23);
    1.61 +    printf(" r24: %016lx  ", regs->r24);
    1.62 +    printf(" r25: %016lx\n", regs->r25);
    1.63 +    printf(" r26: %016lx  ", regs->r26);
    1.64 +    printf(" r27: %016lx\n", regs->r27);
    1.65 +    printf(" r28: %016lx  ", regs->r28);
    1.66 +    printf(" r29: %016lx\n", regs->r29);
    1.67 +    printf(" r30: %016lx  ", regs->r30);
    1.68 +    printf(" r31: %016lx\n", regs->r31);
    1.69 +    
    1.70  }
    1.71  #endif
    1.72