summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/mmap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/seccomp/mmap.cc')
-rw-r--r--sandbox/linux/seccomp/mmap.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp/mmap.cc b/sandbox/linux/seccomp/mmap.cc
index cefef3a..700da91 100644
--- a/sandbox/linux/seccomp/mmap.cc
+++ b/sandbox/linux/seccomp/mmap.cc
@@ -1,3 +1,7 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
#include "debug.h"
#include "sandbox_impl.h"
@@ -5,7 +9,8 @@ namespace playground {
void* Sandbox::sandbox_mmap(void *start, size_t length, int prot, int flags,
int fd, off_t offset) {
- Debug::syscall(__NR_mmap, "Executing handler");
+ long long tm;
+ Debug::syscall(&tm, __NR_mmap, "Executing handler");
struct {
int sysnum;
long long cookie;
@@ -27,6 +32,7 @@ void* Sandbox::sandbox_mmap(void *start, size_t length, int prot, int flags,
read(sys, threadFdPub(), &rc, sizeof(rc)) != sizeof(rc)) {
die("Failed to forward mmap() request [sandbox]");
}
+ Debug::elapsed(tm, __NR_mmap);
return rc;
}