Skip to content

Commit da753e6

Browse files
committed
CP-50836: Add VM_migrate_downtime and request_shutdown spans
This simplifies making optimisations as it saves having to look in the logs for these events. Signed-off-by: Steven Woods <[email protected]>
1 parent e2f1ffd commit da753e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ocaml/xenopsd/xc/xenops_server_xen.ml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,8 @@ module VM = struct
17781778
if di.Xenctrl.total_memory_pages = 0n then
17791779
raise (Xenopsd_error Domain_not_built) ;
17801780
Domain.unpause ~xc di.Xenctrl.domid
1781-
)
1781+
) ;
1782+
with_tracing ~task:t ~name:"VM_migrate_downtime_end" Fun.id
17821783

17831784
let set_xsdata task vm xsdata =
17841785
on_domain task vm (fun _ xs _ _ di ->
@@ -2515,6 +2516,7 @@ module VM = struct
25152516
@@ fun () -> pre_suspend_callback task
25162517
) ;
25172518

2519+
with_tracing ~task ~name:"VM_save_request_shutdown" @@ fun () ->
25182520
if
25192521
not
25202522
( with_tracing ~task
@@ -2523,6 +2525,7 @@ module VM = struct
25232525
)
25242526
then
25252527
raise (Xenopsd_error Failed_to_acknowledge_suspend_request) ;
2528+
with_tracing ~task ~name:"VM_migrate_downtime_begin" Fun.id ;
25262529
if
25272530
not
25282531
( with_tracing ~task

0 commit comments

Comments
 (0)