4 ms·
libfaketime's awkward interface (control via timestamp files, needing LD_PRELOAD) is why I wrote an experimental library[0] which takes over the clock at the pr
by deivid 3y ago
libfaketime's awkward interface (control via timestamp files, needing LD_PRELOAD) is why I wrote an experimental library[0] which takes over the clock at the process level.
My library modifies the code for the time-related vDSO functions, which is incredibly sketchy yet effective. There are also Python bindings at [1].
[0]: https://github.com/DavidVentura/tpom https://github.com/DavidVentura/tpom
[1]: https://github.com/DavidVentura/py-tpom https://github.com/DavidVentura/py-tpom