reverie-rs / reverie

trace and intercept linux syscalls.
Other
14 stars 5 forks source link

trap as much syscall into tracee's memory space as possible #44

Open wangbj opened 5 years ago

wangbj commented 5 years ago

It's kind of lame some syscalls cannot be patched ends up handling by the tracer (regardless early syscalls before LD_PRELOAD), it forces us to write two different versions of the same logic, hence it would be necessary to force syscall to be trapped by the tracee instead. This can be done by:

Both methods can trap the syscalls we cannot handle at this moment, even they wouldn't be as fast as patched syscalls, they wouldn't be any slower than handle syscalls in tracer either.