]> xenbits.xensource.com Git - xen.git/commitdiff
xenctx: Add output of vcpu value and state for --all-vcpus
authorDon Slutz <dslutz@verizon.com>
Thu, 3 Apr 2014 19:07:06 +0000 (15:07 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 4 Apr 2014 08:28:08 +0000 (09:28 +0100)
This makes it easier to know which vcpu the registers belong to and
when not all vcpus are online, which vcpu it is.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xentrace/xenctx.c

index 59b2f1aad5d85c24c332d4734e8705018a957e9b..fa300b5c956d259d5073f64f86530d32a12a406a 100644 (file)
@@ -1019,7 +1019,13 @@ static void dump_all_vcpus(void)
         if ( xc_vcpu_getinfo(xenctx.xc_handle, xenctx.domid, vcpu, &vinfo) )
             continue;
         if ( vinfo.online )
+        {
+            printf("vcpu%d:\n", vcpu);
             dump_ctx(vcpu);
+            printf("\n");
+        }
+        else
+            printf("vcpu%d offline\n\n", vcpu);
     }
 }