]> Git Repo - qemu.git/commitdiff
vl: add -enable-sync-profile
authorEmilio G. Cota <[email protected]>
Wed, 15 Aug 2018 15:42:49 +0000 (11:42 -0400)
committerPaolo Bonzini <[email protected]>
Thu, 23 Aug 2018 16:46:25 +0000 (18:46 +0200)
Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
qemu-options.hx
vl.c

index 5515dfaba5526eba0d64523737d49bfb1cb4c9e2..d66ab1bddbd48465dc0a746386f5f1f48b223d0d 100644 (file)
@@ -3953,6 +3953,16 @@ Dump json-encoded vmstate information for current machine type to file
 in @var{file}
 ETEXI
 
+DEF("enable-sync-profile", 0, QEMU_OPTION_enable_sync_profile,
+    "-enable-sync-profile\n"
+    "                enable synchronization profiling\n",
+    QEMU_ARCH_ALL)
+STEXI
+@item -enable-sync-profile
+@findex -enable-sync-profile
+Enable synchronization profiling.
+ETEXI
+
 STEXI
 @end table
 ETEXI
diff --git a/vl.c b/vl.c
index 7055df362160a8802edfd2d90d9f847ede0818db..d2af8edcf1013b126c18725f60b02161ffef418a 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3959,6 +3959,9 @@ int main(int argc, char **argv, char **envp)
                     exit(1);
                 }
                 break;
+            case QEMU_OPTION_enable_sync_profile:
+                qsp_enable();
+                break;
             case QEMU_OPTION_nodefconfig:
             case QEMU_OPTION_nouserconfig:
                 /* Nothing to be parsed here. Especially, do not error out below. */
This page took 0.039293 seconds and 4 git commands to generate.