criu/images
Pavel Tikhomirov 688ffa50f1 inventory: save uptime to know when dump had happened
We want to use a simple fact: If we have an alive process in a pstree we
want to dump, and a starttime of that process is less than pre-dump's
timestamp (taken while all processes were freezed), then these exact
process existed (100% sure) at the time of these pre-dump and the
process' memory was dumped in images.

So save inventory image on pre-dump and put there an uptime.

https://jira.sw.ru/browse/PSBM-67502

v9: improve comment, put uptime to ivnentory image as 1) where is no
stats in parent images directory if --work-dir option is set to
something different then images directory, 2) stats-dump is not an image
and it is a bad practice to put there data required for restoring.
v10:s/u_int64_t/uint64_t/

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-04-27 01:04:15 +03:00
..
google/protobuf build: Move @protobuf dir into @images 2016-02-15 15:32:27 +03:00
autofs.proto images: add syntax specifier to autofs.proto 2016-10-10 12:49:28 +03:00
binfmt-misc.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
cgroup.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
core-aarch64.proto core-aarch64: mark gregs and clear_tid_addr as (criu).hex 2016-10-24 16:00:15 +03:00
core-arm.proto core-arm: mark gregs and clear_tid_addr as (criu).hex 2016-10-24 16:00:15 +03:00
core-ppc64.proto core-ppc64: mark gregs and clear_tid_addr as (criu).hex 2016-10-24 16:00:15 +03:00
core-s390.proto s390: Add runtime-instrumentation support 2017-10-17 08:40:44 +03:00
core-x86.proto criu: arch, x86 -- Rename registers mode 2017-03-14 23:58:07 +03:00
core.proto images: Reserve tty numbers in task_core_entry 2017-11-30 01:31:19 +03:00
cpuinfo.proto s390:proto: Add s390 to protocol buffer files 2017-08-09 18:51:41 +03:00
creds.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
eventfd.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
eventpoll.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
ext-file.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
fdinfo.proto files: Move CTL_TTY_OFF fixup to generic file engine 2017-12-28 20:02:50 +03:00
fh.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
fifo.proto fifo: Generate unique ID for satellite regfile entry 2017-10-17 11:41:50 +03:00
file-lock.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
fown.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
fs.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
fsnotify.proto fsnotify: don't save mnt_id if a mount namepsace isn't dumped 2017-05-19 09:33:02 +03:00
ghost-file.proto ghost: Add chunked ghost files 2017-07-18 09:34:44 +03:00
inventory.proto inventory: save uptime to know when dump had happened 2018-04-27 01:04:15 +03:00
ipc-desc.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
ipc-msg.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
ipc-sem.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
ipc-shm.proto ipc: Keep shmem segments contents into pagemap/page images 2017-04-11 09:01:10 +03:00
ipc-var.proto ipc/sysctl: c/r kernel.{msg_next_id,sem_next_id,shm_next_id} 2016-09-06 18:58:26 +03:00
macvlan.proto images: add syntax declaration to macvlan.proto 2016-11-03 18:15:02 +03:00
Makefile images: Move uid_gid_extent and userns_entry descriptions 2017-11-30 01:22:14 +03:00
mm.proto mem: add dump state of THP_DISABLED prctl 2017-09-16 12:30:22 +03:00
mnt.proto mount: save ext_real_root for external mounts 2017-04-02 18:12:10 +03:00
netdev.proto net: dump and restore connected to a bridge links 2017-11-30 01:22:16 +03:00
ns.proto crit: Show CLONE_ flags in ns image 2017-11-30 01:31:19 +03:00
opts.proto crit: Beautify unix names recode 2017-04-11 09:01:11 +03:00
packet-sock.proto net: save network namespaces for sockets 2017-11-30 01:18:53 +03:00
pagemap.proto crit: translate pagemap flags into strings 2017-09-16 09:16:33 +03:00
pipe-data.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
pipe.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
pstree.proto images: Add NSpids pstree descriptions 2017-11-30 01:24:30 +03:00
regfile.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
remap-file-path.proto images: remap-file-path -- Reserve entries for spfs manager 2017-11-30 01:22:15 +03:00
remote-image.proto images: add proto2 syntax specification to remote-image.proto 2017-11-30 01:22:15 +03:00
rlimit.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
rpc.proto service: allow to execute page-server as a child process 2017-11-23 20:23:23 +03:00
sa.proto restore/x86: call int80 for compat sigaction restore 2017-03-14 23:58:06 +03:00
seccomp.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
siginfo.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
signalfd.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
sit.proto net: Dump regular sit device 2017-10-17 10:48:46 +03:00
sk-inet.proto images: sk-inet -- Reserve entries for IP raw sockets 2017-11-30 01:22:15 +03:00
sk-netlink.proto images: sk-netlink -- Reserve entries for netlink queued messages 2017-11-30 01:22:15 +03:00
sk-opts.proto sk-inet: restore a value of SO_REUSEPORT 2017-11-23 20:23:14 +03:00
sk-packet.proto images: sk-packet -- Reserve entries for ucreds messages 2017-11-30 01:22:15 +03:00
sk-unix.proto unix: restore sockets on correct mount points 2018-03-23 00:51:37 +03:00
stats.proto stats: save uptime to know when dump had happened 2018-02-28 22:57:30 +03:00
sysctl.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
tcp-stream.proto tcp: dump and restore window parameters 2016-08-08 15:20:47 +03:00
time.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
timer.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
timerfd.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
tty.proto images: tty -- Reserve entries for multiple devpts support 2017-11-30 01:22:15 +03:00
tun.proto net: Dump tun device net id in img 2018-03-16 08:41:17 +03:00
utsns.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
vma.proto Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00