]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-logs-capture: Explicitly set xenctx capture filename
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 3 Jul 2015 11:22:52 +0000 (12:22 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 3 Jul 2015 13:41:12 +0000 (14:41 +0100)
Now that the command contains PATH, the autogenerated filename is very
ugly.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New patch in this version of the series.

ts-logs-capture

index b2caa771aebad72bf55cf11f2abd5cbe648164d2..00813721a8f7edaf43119381e5d9131326885d3f 100755 (executable)
@@ -214,10 +214,11 @@ sub fetch_xenctx_guest ($) {
                $kernpath !~ m,/vmlinuz-, ? die "$kernpath ?" :
                "-s $`/System.map-$'";
            foreach my $iter (0..1) {
+               my $dfn = "$ho->{Name}-xenctx-$gho->{Name},vcpu$vcpu,i$iter";
                try_cmd_output_save(
                    'PATH=/usr/local/lib/xen/bin:/usr/lib/xen/bin:$PATH; '.
-                   "xenctx $sysmaparg $gho->{Domid} $vcpu"
-                   );
+                   "xenctx $sysmaparg $gho->{Domid} $vcpu",
+                   $dfn);
            }
         }
     }