From: Don Slutz Subject: [PATCH v5 14/17] xenctx: Add output of vcpu value and state for --all-vcpus Date: Thu, 20 Mar 2014 15:07:02 -0400 Message-ID: <1395342425-16260-15-git-send-email-dslutz@verizon.com> References: <1395342425-16260-1-git-send-email-dslutz@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395342425-16260-1-git-send-email-dslutz@verizon.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 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 --- v5: Change vcpu=3 to vcpu3. Drop online. tools/xentrace/xenctx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c index 5dfa7e6..2041928 100644 --- a/tools/xentrace/xenctx.c +++ b/tools/xentrace/xenctx.c @@ -1032,7 +1032,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); + } } } -- 1.8.4