mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
zdtm: add pidfd store based pid reuse test
This is just a symlink to the original transition/pid_reuse test with
the right options passed to trigger the pidfd store based pid reuse
detection code path.
Pidfd store based detection is supported only in RPC mode which
requires passing a unix socket fd to be used as pidfd store and
the kernel should support pidfd_open and pidfd_getfd syscalls
{'feature': 'pidfd_store'} for this test to work.
Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
This commit is contained in:
parent
ea0dc7807a
commit
1c08709cdb
5 changed files with 8 additions and 1 deletions
|
|
@ -253,7 +253,8 @@ make -C test/others/rpc/ run
|
|||
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --page-server
|
||||
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --page-server --dedup
|
||||
|
||||
./test/zdtm.py run -t zdtm/transition/pid_reuse --pre 2
|
||||
./test/zdtm.py run -t zdtm/transition/pid_reuse --pre 2 # start time based pid reuse detection
|
||||
./test/zdtm.py run -t zdtm/transition/pidfd_store_sk --rpc --pre 2 # pidfd based pid reuse detection
|
||||
|
||||
./test/zdtm.py run -t zdtm/static/socket-tcp-local --norst
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,9 @@ fedora-no-vdso() {
|
|||
# BPF tests are failing see: https://github.com/checkpoint-restore/criu/issues/1354
|
||||
# Needs to be fixed, skip for now
|
||||
ssh default 'cd /vagrant/criu/test; sudo ./zdtm.py run -a --keep-going -x zdtm/static/bpf_hash -x zdtm/static/bpf_array'
|
||||
# This test (pidfd_store_sk) requires pidfd_getfd syscall which is guaranteed in Fedora 33.
|
||||
# It is also skipped from -a because it runs in RPC mode only
|
||||
ssh default 'cd /vagrant/criu/test; sudo ./zdtm.py run -t zdtm/transition/pidfd_store_sk --rpc --pre 2'
|
||||
}
|
||||
|
||||
$1
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ TST_NOFILE = \
|
|||
shmem \
|
||||
lazy-thp \
|
||||
pid_reuse \
|
||||
pidfd_store_sk \
|
||||
|
||||
|
||||
TST_FILE = \
|
||||
|
|
|
|||
1
test/zdtm/transition/pidfd_store_sk.c
Symbolic link
1
test/zdtm/transition/pidfd_store_sk.c
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
pid_reuse.c
|
||||
1
test/zdtm/transition/pidfd_store_sk.desc
Normal file
1
test/zdtm/transition/pidfd_store_sk.desc
Normal file
|
|
@ -0,0 +1 @@
|
|||
{'flags': 'noauto suid pre-dump-notify', 'opts': '--pidfd-store', 'feature': 'pidfd_store'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue