]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
tools/misc/xen-vmtrace: use reset and enable
authorTamas K Lengyel <tamas@tklengyel.com>
Sat, 20 Feb 2021 21:07:38 +0000 (16:07 -0500)
committerIan Jackson <iwj@xenproject.org>
Mon, 22 Feb 2021 11:15:31 +0000 (11:15 +0000)
The expected behavior while using xen-vmtrace is to get a clean start, even if
the tool was used previously on the same VM.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
tools/misc/xen-vmtrace.c

index 7572e880c55083178fb645b4b53dfe6f3e6d648c..35d14c6a9ba866ee4fccbd565c471f7e28958ecf 100644 (file)
@@ -119,7 +119,7 @@ int main(int argc, char **argv)
         goto out;
     }
 
-    if ( xc_vmtrace_enable(xch, domid, vcpu) )
+    if ( xc_vmtrace_reset_and_enable(xch, domid, vcpu) )
     {
         perror("xc_vmtrace_enable()");
         goto out;