Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: sandbox/linux/seccomp/mprotect.cc

Issue 997009: Compute and pring the time that it takes to execute system calls. This data... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/seccomp/mmap.cc ('k') | sandbox/linux/seccomp/munmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/mprotect.cc
===================================================================
--- sandbox/linux/seccomp/mprotect.cc (revision 41782)
+++ sandbox/linux/seccomp/mprotect.cc (working copy)
@@ -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 @@
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);
}
« no previous file with comments | « sandbox/linux/seccomp/mmap.cc ('k') | sandbox/linux/seccomp/munmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698