Live data from Hacker News

Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

github.com

21–30 of 31 posts

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#21
post #17
post #2

It's worth mentioning that libfaketime [1] is a more mature alternative with macOS support and more complete coverage of the relevant system calls. Nothing against the current project but that might be a better choice for many people. [1] - https://github.com/wolfcw/libfaketime

Sadly, the license is GPL rather than the expected LGPL.

In what sense LGPL is "expected"?

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#25
post #10

Nice Implementation! I built something similar a while ago to warp time in video games (for training reinforcement learning agents). Some issues off the top of my head (that I ran into): VDSO censoring is a lot harder than just symbol overriding, it has to actually be removed from the aux vector (third thing on the process stack when the process launches after arguments and environment variables. The EHDR entry is wh…

And the most foolproof way would be to run in a virtual machine or a prepared container. Pretty fast too. Having a clock cgroup would be easier and more useful than you'd think. Also, you can play tricks like ntpd does in a container. (e.g. adjtime)

According to Wikipedia, there is a proposed time namespace. Controlled time warping could be a useful feature there.

A proposal should be made, if that's not part of the planned features.

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#26
post #2

It's worth mentioning that libfaketime [1] is a more mature alternative with macOS support and more complete coverage of the relevant system calls. Nothing against the current project but that might be a better choice for many people. [1] - https://github.com/wolfcw/libfaketime

I've been a satisfied user of libfaketime as well. Would be great if the OP could highlight the feature differences to it!

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#27
post #19
post #5

I designed something similar for general fault injection [1] (and to learn rust). There's no intercept written for time syscalls yet, but it's on the issues list. [1] https://github.com/androm3da/libfaultinj

How does it compare to libfiu? https://blitiri.com.ar/p/libfiu/

It's nowhere near as feature complete or well-documented. :(

Oh well, it's an interesting undertaking anyways.

It looks to me like libfiu has a pretty clever way of generating the libc wrappers from a config file.

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#28
post #16

cool name, sadly copyrighted http://tardis.wikia.com/wiki/Tardis:Copyrights

As pointed out elsewhere this page identifies a trademark on the term "TARDIS" and not a copyright. Terms like "TARDIS" cannot be copyrighted.

But trademarks have limited scope and the standard test for infringement is that it be "confusingly similar". Hilariously, BBC's TARDIS USPTO word mark [1] includes "... computer software for use in database management; ... computer, electronic and video games programs and equipment, namely, software,"

[1] registration #4161487 -- http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4803:loe...

Re: Show HN: TARDIS – Warp a process's perspective of time by hooking syscalls

#30
post #16

cool name, sadly copyrighted http://tardis.wikia.com/wiki/Tardis:Copyrights

As pointed out elsewhere this page identifies a trademark on the term "TARDIS" and not a copyright. Terms like "TARDIS" cannot be copyrighted. But trademarks have limited scope and the standard test for infringement is that it be "confusingly similar". Hilariously, BBC's TARDIS USPTO word mark [1] includes "... computer software for use in database management; ... computer, electronic and video games programs and equ…

The link doesn't work:

This search session has expired. Please start a search session again by clicking on the TRADEMARK icon, if you wish to continue.

Post reply on HN