• Tong Tiangen's avatar
    riscv/vdso: Add support for time namespaces · dffe11e2
    Tong Tiangen authored
    Implement generic vdso time namespace support which also enables time
    namespaces for riscv. This is quite similar to what arm64 does.
    
    selftest/timens test result:
      1..10
      ok 1 Passed for CLOCK_BOOTTIME (syscall)
      ok 2 Passed for CLOCK_BOOTTIME (vdso)
      ok 3 # SKIP CLOCK_BOOTTIME_ALARM isn't supported
      ok 4 # SKIP CLOCK_BOOTTIME_ALARM isn't supported
      ok 5 Passed for CLOCK_MONOTONIC (syscall)
      ok 6 Passed for CLOCK_MONOTONIC (vdso)
      ok 7 Passed for CLOCK_MONOTONIC_COARSE (syscall)
      ok 8 Passed for CLOCK_MONOTONIC_COARSE (vdso)
      ok 9 Passed for CLOCK_MONOTONIC_RAW (syscall)
      ok 10 Passed for CLOCK_MONOTONIC_RAW (vdso)
      # Totals: pass:8 fail:0 xfail:0 xpass:0 skip:2 error:0
    Signed-off-by: default avatarTong Tiangen <tongtiangen@huawei.com>
    Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
    dffe11e2
gettimeofday.h 2.1 KB