From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: [PATCH v3 15/16] xenctx: Add output of vcpu value and state for --all-vcpus Date: Mon, 11 Nov 2013 13:15:21 -0500 Message-ID: <1384193722-2916-16-git-send-email-dslutz@terremark.com> References: <1384193722-2916-1-git-send-email-dslutz@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384193722-2916-1-git-send-email-dslutz@terremark.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Campbell , Stefano Stabellini , George Dunlap , Ian Jackson , Don Slutz , Jan Beulich List-Id: xen-devel@lists.xenproject.org From: Don Slutz 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 --- Changed since v2: * Extract just the vcpu printing code from "xenctx: xenctx: Add optional fCPU" tools/xentrace/xenctx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c index d0398da..8d96e9f 100644 --- a/tools/xentrace/xenctx.c +++ b/tools/xentrace/xenctx.c @@ -1007,8 +1007,13 @@ static void dump_all_vcpus(void) { if ( xc_vcpu_getinfo(xenctx.xc_handle, xenctx.domid, vcpu, &vinfo) ) continue; - if ( vinfo.online ) + if ( vinfo.online ) { + printf("vcpu=%d online\n", vcpu); dump_ctx(vcpu); + printf("\n"); + } else { + printf("vcpu=%d offline\n\n", vcpu); + } } } -- 1.8.4