diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-16 11:20:26 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-16 11:20:26 -0700 |
commit | 4add64d2b5dd369b61373de5f54e706e82d8ca0f (patch) | |
tree | 84aac857c82623066361ad00d985d31741de241d /pkg/sentry/time/sampler.go | |
parent | 488ba4176ed3b255660ca9b39982033101bfc2a4 (diff) | |
parent | be0897702e77081ce6f1add7b4e98fcfcc020d7e (diff) |
Merge pull request #5991 from zhlhahaha:2165
PiperOrigin-RevId: 379766106
Diffstat (limited to 'pkg/sentry/time/sampler.go')
-rw-r--r-- | pkg/sentry/time/sampler.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/sentry/time/sampler.go b/pkg/sentry/time/sampler.go index 4ac9c4474..24a47f5d5 100644 --- a/pkg/sentry/time/sampler.go +++ b/pkg/sentry/time/sampler.go @@ -21,13 +21,6 @@ import ( ) const ( - // defaultOverheadTSC is the default estimated syscall overhead in TSC cycles. - // It is further refined as syscalls are made. - defaultOverheadCycles = 1 * 1000 - - // maxOverheadCycles is the maximum allowed syscall overhead in TSC cycles. - maxOverheadCycles = 100 * defaultOverheadCycles - // maxSampleLoops is the maximum number of times to try to get a clock sample // under the expected overhead. maxSampleLoops = 5 |