Time namespace

From CRIU
Revision as of 00:48, 13 August 2018 by Dsafonov (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Two things (for now) we want to solve with this:

  1. Shift timer's offsets
  2. Make start-time remain "unchanged" after C/R
  3. Continuous flow of monotonic time (CLOCK_MONOTONIC).

What about other kinds of counters like perf events and trace events?

TODO

Required in RFC

  • timerfd
  • timer_create()
  • REALTIME offsets
  • COARSE times
  • RAW time
  • vfs modification/creation time should work
  • utime()/utimes()/futimesat() (with times == NULL)
  • utimensat()/futimens() - with UTIME_NOW
  • clock_nanosleep()
  • mq_timedsend()/mq_timedreceive()
  • semtimedop()

Maybe later

  • Adjtime (too complicated for PoC)
  • Cpu time for thread/pid/pgid (times())
  • /proc/stat ticks? (top uses them e.g.)
  • pid creation time (probably different unrelated API)

Git

Links