From: Emilio G. Cota Date: Wed, 15 Aug 2018 15:42:49 +0000 (-0400) Subject: vl: add -enable-sync-profile X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=12df189de139dd79b63d055b531e2d88195bfee6;p=qemu.git vl: add -enable-sync-profile Signed-off-by: Emilio G. Cota Signed-off-by: Paolo Bonzini --- diff --git a/qemu-options.hx b/qemu-options.hx index 5515dfaba5..d66ab1bddb 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -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 7055df3621..d2af8edcf1 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. */