diff options
author | Andrei Vagin <avagin@gmail.com> | 2019-08-14 07:40:40 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-04-25 10:43:23 +0300 |
commit | 4127ef4ab769dc4417c22d0ce0a4ddaaca4193b4 (patch) | |
tree | f1efcbe44255fb077f4fc46d38acc93b4cda818a /images | |
parent | 0e9b42acf96d2c5fc3a6174ae6e4f2ad8a64c272 (diff) |
criu: Add support for time namespaces
The time namespace allows for per-namespace offsets to the system
monotonic and boot-time clocks.
C/R of time namespaces are very straightforward. On dump, criu enters a
target time namespace and dumps currents clocks values, then on restore,
criu creates a new namespace and restores clocks values.
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile | 1 | ||||
-rw-r--r-- | images/core.proto | 1 | ||||
-rw-r--r-- | images/timens.proto | 10 |
3 files changed, 12 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile index e7f0580cf..5ddd37664 100644 --- a/images/Makefile +++ b/images/Makefile @@ -64,6 +64,7 @@ proto-obj-y += autofs.o proto-obj-y += macvlan.o proto-obj-y += sit.o proto-obj-y += memfd.o +proto-obj-y += timens.o CFLAGS += -iquote $(obj)/ diff --git a/images/core.proto b/images/core.proto index e90522914..22c2a9f1f 100644 --- a/images/core.proto +++ b/images/core.proto @@ -70,6 +70,7 @@ message task_kobj_ids_entry { optional uint32 mnt_ns_id = 9; optional uint32 user_ns_id = 10; optional uint32 cgroup_ns_id = 11; + optional uint32 time_ns_id = 12; } message thread_sas_entry { diff --git a/images/timens.proto b/images/timens.proto new file mode 100644 index 000000000..a8272609b --- /dev/null +++ b/images/timens.proto @@ -0,0 +1,10 @@ +syntax = "proto2"; + +message timespec { + required uint64 tv_sec = 1; + required uint64 tv_nsec = 2; +} +message timens_entry { + required timespec monotonic = 1; + required timespec boottime = 2; +} |