From: Don Slutz Date: Thu, 3 Apr 2014 19:07:06 +0000 (-0400) Subject: xenctx: Add output of vcpu value and state for --all-vcpus X-Git-Tag: 4.5.0-rc1~1104 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f1e64a60fd151e39859ee8555b03b3c67d5b3a05;p=xen.git xenctx: Add output of vcpu value and state for --all-vcpus 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 Acked-by: Ian Campbell --- diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c index 59b2f1aad5..fa300b5c95 100644 --- a/tools/xentrace/xenctx.c +++ b/tools/xentrace/xenctx.c @@ -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); } }