diff options
Diffstat (limited to 'sandbox/linux/seccomp/access.cc')
-rw-r--r-- | sandbox/linux/seccomp/access.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp/access.cc b/sandbox/linux/seccomp/access.cc index f0248b7..50e94bb 100644 --- a/sandbox/linux/seccomp/access.cc +++ b/sandbox/linux/seccomp/access.cc @@ -8,7 +8,8 @@ namespace playground { int Sandbox::sandbox_access(const char *pathname, int mode) { - Debug::syscall(__NR_access, "Executing handler"); + long long tm; + Debug::syscall(&tm, __NR_access, "Executing handler"); size_t len = strlen(pathname); struct Request { int sysnum; @@ -30,6 +31,7 @@ int Sandbox::sandbox_access(const char *pathname, int mode) { read(sys, threadFdPub(), &rc, sizeof(rc)) != sizeof(rc)) { die("Failed to forward access() request [sandbox]"); } + Debug::elapsed(tm, __NR_access); return static_cast<int>(rc); } |