Lines Matching refs:time_travel_shm

47 static struct um_timetravel_schedshm *time_travel_shm;  variable
81 time_travel_shm = os_mmap_rw_shared(fd, sizeof(*time_travel_shm)); in time_travel_setup_shm()
83 if (!time_travel_shm) in time_travel_setup_shm()
86 len = time_travel_shm->len; in time_travel_setup_shm()
88 if (time_travel_shm->version != UM_TIMETRAVEL_SCHEDSHM_VERSION || in time_travel_setup_shm()
89 len < struct_size(time_travel_shm, clients, id + 1)) { in time_travel_setup_shm()
90 os_unmap_memory(time_travel_shm, sizeof(*time_travel_shm)); in time_travel_setup_shm()
91 time_travel_shm = NULL; in time_travel_setup_shm()
95 time_travel_shm = os_mremap_rw_shared(time_travel_shm, in time_travel_setup_shm()
96 sizeof(*time_travel_shm), in time_travel_setup_shm()
98 if (!time_travel_shm) in time_travel_setup_shm()
101 time_travel_shm_offset = time_travel_shm->current_time; in time_travel_setup_shm()
102 time_travel_shm_client = &time_travel_shm->clients[id]; in time_travel_setup_shm()
106 time_travel_ext_free_until = &time_travel_shm->free_until; in time_travel_setup_shm()
160 if (time_travel_shm) { in time_travel_handle_message()
170 if (time_travel_shm) in time_travel_handle_message()
215 if (msg.op == UM_TIMETRAVEL_WAIT && time_travel_shm) in time_travel_ext_req()
277 if (time_travel_shm) { in time_travel_ext_update_request()
280 running = &time_travel_shm->clients[time_travel_shm->running_id]; in time_travel_ext_update_request()
287 if (time < time_travel_shm->free_until) in time_travel_ext_update_request()
288 time_travel_shm->free_until = time; in time_travel_ext_update_request()
300 if (time_travel_shm) { in __time_travel_propagate_time()
301 if (time_travel_shm->running_id != time_travel_shm_id) in __time_travel_propagate_time()
303 time_travel_shm->current_time = time_travel_time + in __time_travel_propagate_time()
342 if (!time_travel_shm) in time_travel_ext_wait()
366 if (time_travel_shm) in time_travel_ext_get_time()
367 time_travel_set_time(time_travel_shm->current_time - in time_travel_ext_get_time()