From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 5/6] ts-logs-capture: Run xenctx twice for each guest vcpu Date: Fri, 3 Jul 2015 12:49:30 +0100 Message-ID: <1435924171-20789-5-git-send-email-ian.jackson@eu.citrix.com> References: <21910.28952.574765.545182@mariner.uk.xensource.com> <1435924171-20789-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAzTT-0007qs-2q for xen-devel@lists.xenproject.org; Fri, 03 Jul 2015 11:49:43 +0000 In-Reply-To: <1435924171-20789-1-git-send-email-ian.jackson@eu.citrix.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.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Two (or more) back-to-back ctxt's can often be useful, by giving a snapshot of a loop the guest is stuck in. Signed-off-by: Ian Jackson --- v2: New patch in this series. --- ts-logs-capture | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ts-logs-capture b/ts-logs-capture index 04cb2fd..b2caa77 100755 --- a/ts-logs-capture +++ b/ts-logs-capture @@ -213,10 +213,12 @@ sub fetch_xenctx_guest ($) { my $sysmaparg = !defined $kernpath ? '' : $kernpath !~ m,/vmlinuz-, ? die "$kernpath ?" : "-s $`/System.map-$'"; - try_cmd_output_save( - 'PATH=/usr/local/lib/xen/bin:/usr/lib/xen/bin:$PATH; '. - "xenctx $sysmaparg $gho->{Domid} $vcpu" - ); + foreach my $iter (0..1) { + try_cmd_output_save( + 'PATH=/usr/local/lib/xen/bin:/usr/lib/xen/bin:$PATH; '. + "xenctx $sysmaparg $gho->{Domid} $vcpu" + ); + } } } } -- 1.7.10.4