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.jack...@eu.citrix.com>
---
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@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to