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

Unified Diff: sandbox/linux/seccomp/securemem.h

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/open.cc ('k') | sandbox/linux/seccomp/socketcall.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/securemem.h
===================================================================
--- sandbox/linux/seccomp/securemem.h (revision 41782)
+++ sandbox/linux/seccomp/securemem.h (working copy)
@@ -101,10 +101,20 @@
void* tmpArg6;
void* tmpReturnValue;
+ // Scratch space used to return the result of a rdtsc instruction
+ int rdtscpEax;
+ int rdtscpEdx;
+ int rdtscpEcx;
+
// We often have long sequences of calls to gettimeofday(). This is
// needlessly expensive. Coalesce them into a single call.
- long lastSyscallNum;
+ int lastSyscallNum;
int gettimeofdayCounter;
+
+ // For debugging purposes, we want to be able to log messages. This can
+ // result in additional system calls. Make sure that we don't trigger
+ // logging of those recursive calls.
+ int recursionLevel;
} __attribute__((packed));
char scratchPage[4096];
};
« no previous file with comments | « sandbox/linux/seccomp/open.cc ('k') | sandbox/linux/seccomp/socketcall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698