[CRIU] [PATCH 0/3] zdtm: do test the irmap cache feature
Andrey Vagin
avagin at openvz.org
Wed Mar 16 11:22:08 PDT 2016
From: Andrew Vagin <avagin at virtuozzo.com>
>From code coverage report, we found that inotify_irmap doesn't test irmap
cache, because we is always able to resolve path from /proc/PID/fd/X.
Current view: top level - criu - irmap.c (source / functions) Hit Total Coverage
Test: criu.info Lines: 40 223 17.9 %
Date: 2016-03-16 Functions: 4 13 30.8 %
This series introduces a new fault to emulate a situation
when a file can't be opened by handle and we have to find
it in the irmap cache/
Andrew Vagin (1):
zdtm: add post-predump hook
Andrey Vagin (2):
fault: add ability to fault open_by_handel in check_open_handle
zdtm: emulate a situation with invalid files in irmap cache
criu/fsnotify.c | 7 ++++++
criu/include/fault-injection.h | 2 ++
test/jenkins/criu-fault.sh | 1 +
test/zdtm.py | 3 ++-
test/zdtm/static/inotify_irmap.c | 50 +++++++++++++++++++++----------------
test/zdtm/static/inotify_irmap.desc | 2 +-
test/zdtm/static/inotify_irmap.hook | 18 +++++++++++++
7 files changed, 60 insertions(+), 23 deletions(-)
create mode 100755 test/zdtm/static/inotify_irmap.hook
--
2.5.0
More information about the CRIU
mailing list