diff options
author | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 01:05:59 +0000 |
---|---|---|
committer | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 01:05:59 +0000 |
commit | 62dc1f04051694ae381488ef44fad336c6260ad6 (patch) | |
tree | 52ddd2c05f774115269541940c3bb32ddffba215 /sandbox/linux/seccomp/trusted_thread.cc | |
parent | ec64212b924d80d3ba5da864812b8dea1132854e (diff) | |
download | chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.zip chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.tar.gz chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.tar.bz2 |
Compute and pring the time that it takes to execute system calls. This data
is going to be skewed slightly, as calling gettimeofday() by itself also
takes a little bit of time. But it should be good enough to allow us to see
where we have performance bottlenecks.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/997009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/seccomp/trusted_thread.cc')
-rw-r--r-- | sandbox/linux/seccomp/trusted_thread.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/trusted_thread.cc b/sandbox/linux/seccomp/trusted_thread.cc index af2e913..c73091c 100644 --- a/sandbox/linux/seccomp/trusted_thread.cc +++ b/sandbox/linux/seccomp/trusted_thread.cc @@ -86,6 +86,9 @@ void Sandbox::createTrustedThread(int processFdPub, int cloneFdPub, // 0x3C: RDTSCP result (%eax) // 0x40: RDTSCP result (%edx) // 0x44: RDTSCP result (%ecx) + // 0x48: last system call (not used on x86-64) + // 0x4C: number of consecutive calls to a time fnc (not used on x86-64) + // 0x50: nesting level of system calls (for debugging purposes only) // We use the %fs register for accessing the secure read-only page, and // the untrusted scratch space immediately following it. The segment @@ -699,6 +702,7 @@ void Sandbox::createTrustedThread(int processFdPub, int cloneFdPub, // 0x28: RDTSCP result (%ecx) // 0x2C: last system call (updated in syscall.cc) // 0x30: number of consecutive calls to a time fnc. (e.g. gettimeofday) + // 0x34: nesting level of system calls (for debugging purposes only) "0:xor %%esp, %%esp\n" "mov $2, %%eax\n" // %mm2 = initial sequence number |