diff options
Diffstat (limited to 'sandbox/linux/seccomp/mprotect.cc')
-rw-r--r-- | sandbox/linux/seccomp/mprotect.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp/mprotect.cc b/sandbox/linux/seccomp/mprotect.cc index abe450b..d079104 100644 --- a/sandbox/linux/seccomp/mprotect.cc +++ b/sandbox/linux/seccomp/mprotect.cc @@ -8,7 +8,8 @@ namespace playground { int Sandbox::sandbox_mprotect(const void *addr, size_t len, int prot) { - Debug::syscall(__NR_mprotect, "Executing handler"); + long long tm; + Debug::syscall(&tm, __NR_mprotect, "Executing handler"); struct { int sysnum; long long cookie; @@ -27,6 +28,7 @@ int Sandbox::sandbox_mprotect(const void *addr, size_t len, int prot) { read(sys, threadFdPub(), &rc, sizeof(rc)) != sizeof(rc)) { die("Failed to forward mprotect() request [sandbox]"); } + Debug::elapsed(tm, __NR_mprotect); return static_cast<int>(rc); } |