Added one system call for x86 and generalized where logs are stored