playing around with LuaJIT and ptrace, maybe this will become a lib eventually