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