diff options
| author | Dean Deng <deandeng@google.com> | 2020-12-07 12:35:42 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-12-08 07:32:33 +0100 |
| commit | 9af51e31617374d564a98084b3848045bc026a0f (patch) | |
| tree | 76e1a5cc942fb199a1b739173722178d0b8cb784 /pkg/build/gvisor.go | |
| parent | 51a9082e064119316893e12187cab2843283ed4d (diff) | |
pkg/build: fix gvisor instrumentation filters
Diffstat (limited to 'pkg/build/gvisor.go')
| -rw-r--r-- | pkg/build/gvisor.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/build/gvisor.go b/pkg/build/gvisor.go index b540d0144..24f47a827 100644 --- a/pkg/build/gvisor.go +++ b/pkg/build/gvisor.go @@ -32,16 +32,16 @@ func (gvisor gvisor) build(params *Params) error { if coverageEnabled(config) { coverageFiles := "//pkg/..." exclusions := []string{ - "//pkg/sentry/platform/...", // Breaks kvm. + "//pkg/sentry/platform:platform", // Breaks kvm. } if race { - // These files use go:norace, which is not respected by - // coverage instrumentation. Race builds will be - // instrumented with atomic coverage (using + // These targets use go:norace, which is not + // respected by coverage instrumentation. Race builds + // will be instrumented with atomic coverage (using // sync/atomic.AddInt32), which will not work. exclusions = append(exclusions, []string{ - "//pkg/sleep/sleep_unsafe.go", - "//pkg/syncevent/waiter_unsafe.go", + "//pkg/sleep:sleep", + "//pkg/syncevent:syncevent", }...) } for _, f := range exclusions { |
