google/gvisor

Support CLOCK_BOOTTIME

Aperta

#218 aperta il 29 apr 2019

 (5 commenti) (0 reazioni) (0 assegnatari)Go (1061 fork)batch import
area: compatibilitygood first issuepriority: p3type: enhancement

Metriche repository

Star
 (12.713 stelle)
Metriche merge PR
 (Merge medio 4g 22h) (184 PR mergiate in 30 g)

Descrizione

We could likely make CLOCK_BOOTTIME equivalent to CLOCK_MONOTONIC, as CLOCK_MONOTONIC already includes time spent not running during save / restore, which is the closest thing we have to "suspend".

https://github.com/google/gvisor/blob/8f4634997bd97810a85a70b71f000378d9db2e55/pkg/sentry/kernel/timekeeper.go#L119-L129

Guida contributor