[CRIU] zdtm ns flavour test for rtc fails for arm64

Christopher Covington cov at codeaurora.org
Wed Dec 30 11:38:54 PST 2015


Hi Vijay, Andrew,

On 12/29/2015 01:39 AM, Vijay Kilari wrote:
> Hi,
> 
>  zdtm test for rtc passes with below log for host flavour.
> However for ns (namespace) flavour it fails (log below).
> Any idea?
> 
> ----------------------------------------------------------
> Test: zdtm/live/static/chroot-file, Result: PASS
> Execute static/rtc
> ./rtc --pidfile=rtc.pid --outfile=rtc.out
> Dump 33673
> Restore
> Check results 33673
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> 06:16:19.052: 33673: ERR: rtc.c:51: delta = 453242 (errno = 2 (No such
> file or directory))
> 06:16:21.704: 33673: PASS
> Test: zdtm/live/static/rtc, Result: PASS
> 
> ==============================================================================
> Execute ns/static/rtc
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev’: File exists
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev/pts’: File exists
> mknod: ‘/tmp/criu-root.sG3zM4/dev/tty’: File exists
> mknod: ‘/tmp/criu-root.sG3zM4/dev/null’: File exists
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev/net/’: File exists
> mknod: missing operand after ‘0xc8’
> Try 'mknod --help' for more information.
> mknod: missing operand after ‘0x0’
> Try 'mknod --help' for more information.
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/proc’: File exists
> ./rtc --pidfile=rtc.pid --outfile=rtc.out
> The test failed (0, 1)
> Makefile:261: recipe for target 'rtc.pid' failed
> make: *** [rtc.pid] Error 1
> ERROR: fail to start /home/ubuntu/criu/criu-1.8/test/zdtm/live/static/rtc
> Test: zdtm/live/static/rtc, Result: FAIL
> ==================================== ERROR ====================================
> Test: zdtm/live/static/rtc, Namespace: 1
> Output file: /tmp/criu-root.sG3zM4/zdtm/live/static/rtc.out
> ------------------------------------------------------------------------------
> 06:23:00.551:     5: ERR: rtc.c:26: open (errno = 2 (No such file or directory))
> 06:23:00.551:     4: ERR: test.c:195: Test exited unexpectedly with code 1
> The test returned non-zero code 256
>   PID   SID COMMAND
>     1     1 rtc
>     6     1 ps
> waitpid() failed: No child processes
> ------------------------------------- END -------------------------------------
> ================================= ERROR OVER =================================

https://www.kernel.org/doc/Documentation/rtc.txt

It looks like in order for this test to be portable, it will need to
switch to using /dev/rtc0.

But support is also required kernel side. I notice in the arm64
defconfig, CONFIG_RTC_DRV_PL031=y isn't set, and as a result there's no
/dev/rtc0. I've sent out a little patch for the arm64 defconfig.

Christopher Covington

-- 
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list