projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069dfba
)
xenctx: Add output of vcpu value and state for --all-vcpus
author
Don Slutz
<dslutz@verizon.com>
Thu, 3 Apr 2014 19:07:06 +0000
(15:07 -0400)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/tools/xentrace/xenctx.c
b/tools/xentrace/xenctx.c
index 59b2f1aad5d85c24c332d4734e8705018a957e9b..fa300b5c956d259d5073f64f86530d32a12a406a 100644
(file)
--- 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);
}
}