• Pavel Tikhomirov's avatar
    inventory: save uptime to know when dump had happened · 5451fc23
    Pavel Tikhomirov authored
    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: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    5451fc23
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...