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