shekkbuilder / timetravel-linux

Wrapper program which intercepts and modifies the values of time-related Linux syscalls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PURPOSE

  Executable wrapper to fake the results of syscalls which return absolute
  times. Calls to SYS_gettimeofday, SYS_clock_gettime, and SYS_time are
  intercepted.

CAVEATS

  Will not work for all calls on kernels implementing vsyscalls, e.g. some
  x86_64. These cannot be intercepted since on such systems gettimeofday is not
  actually a syscall; glibc reads the time for a shared page which is updated
  by the kernel.

USAGE

  % timetravel <offset> <executable> <program args>

  where offset is a positive or negative time in seconds.

About

Wrapper program which intercepts and modifies the values of time-related Linux syscalls


Languages

Language:C 99.4%Language:Makefile 0.6%