[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 5/6] ts-logs-capture: Run xenctx twice for each guest vcpu



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 <Ian.Jackson@xxxxxxxxxxxxx>
---
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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.