diff mbox series

[7/9] vl: add -enable-sync-profile

Message ID 20180817051853.23792-8-cota@braap.org
State New
Headers show
Series synchronization profiler | expand

Commit Message

Emilio Cota Aug. 17, 2018, 5:18 a.m. UTC
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 vl.c            |  3 +++
 qemu-options.hx | 10 ++++++++++
 2 files changed, 13 insertions(+)
diff mbox series

Patch

diff --git a/vl.c b/vl.c
index 16b913f9d5..5f4e24f29b 100644
--- 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. */
diff --git a/qemu-options.hx b/qemu-options.hx
index ea4edb4938..466a61d384 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -3963,6 +3963,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