diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-27 22:36:48 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-27 22:36:48 +0000 |
commit | 47340532629fadec46be0155299444fcaf975534 (patch) | |
tree | da5938d70cc34a09549cf3fd0c4f46541215faf6 /pkg/sentry/kernel | |
parent | 9177d7067f52b594767f6bf9e1b041ecd7c0d37e (diff) | |
parent | 2a60f9229166effac64653be4f46683ea1a0cd87 (diff) |
Merge release-20200921.0-53-g2a60f9229 (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/kcov.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/kcov.go b/pkg/sentry/kernel/kcov.go index aad63aa99..d3e76ca7b 100644 --- a/pkg/sentry/kernel/kcov.go +++ b/pkg/sentry/kernel/kcov.go @@ -89,6 +89,10 @@ func (kcov *Kcov) TaskWork(t *Task) { kcov.mu.Lock() defer kcov.mu.Unlock() + if kcov.mode != linux.KCOV_TRACE_PC { + return + } + rw := &kcovReadWriter{ mf: kcov.mfp.MemoryFile(), fr: kcov.mappable.FileRange(), |