Skip to content

Commit 12df189

Browse files
cotabonzini
authored andcommitted
vl: add -enable-sync-profile
Signed-off-by: Emilio G. Cota <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 9d5cff3 commit 12df189

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

qemu-options.hx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,16 @@ Dump json-encoded vmstate information for current machine type to file
39533953
in @var{file}
39543954
ETEXI
39553955

3956+
DEF("enable-sync-profile", 0, QEMU_OPTION_enable_sync_profile,
3957+
"-enable-sync-profile\n"
3958+
" enable synchronization profiling\n",
3959+
QEMU_ARCH_ALL)
3960+
STEXI
3961+
@item -enable-sync-profile
3962+
@findex -enable-sync-profile
3963+
Enable synchronization profiling.
3964+
ETEXI
3965+
39563966
STEXI
39573967
@end table
39583968
ETEXI

vl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,6 +3959,9 @@ int main(int argc, char **argv, char **envp)
39593959
exit(1);
39603960
}
39613961
break;
3962+
case QEMU_OPTION_enable_sync_profile:
3963+
qsp_enable();
3964+
break;
39623965
case QEMU_OPTION_nodefconfig:
39633966
case QEMU_OPTION_nouserconfig:
39643967
/* Nothing to be parsed here. Especially, do not error out below. */

0 commit comments

Comments
 (0)