From c2faf9b2d5b583f53d01b8b483e26b61ed72cbbf Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 16 Jan 2019 14:50:43 +0100 Subject: all: detect extra coverage support Based on whether the kernel supports KCOV_REMOTE_ENABLE ioctl. --- pkg/host/host.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/host/host.go') diff --git a/pkg/host/host.go b/pkg/host/host.go index 062cae25f..d8d83916d 100644 --- a/pkg/host/host.go +++ b/pkg/host/host.go @@ -47,6 +47,7 @@ var testFallback = false const ( FeatureCoverage = iota FeatureComparisons + FeatureExtraCoverage FeatureSandboxSetuid FeatureSandboxNamespace FeatureSandboxAndroidUntrustedApp @@ -79,6 +80,7 @@ func Check(target *prog.Target) (*Features, error) { res := &Features{ FeatureCoverage: {Name: "code coverage", Reason: unsupported}, FeatureComparisons: {Name: "comparison tracing", Reason: unsupported}, + FeatureExtraCoverage: {Name: "extra coverage", Reason: unsupported}, FeatureSandboxSetuid: {Name: "setuid sandbox", Reason: unsupported}, FeatureSandboxNamespace: {Name: "namespace sandbox", Reason: unsupported}, FeatureSandboxAndroidUntrustedApp: {Name: "Android sandbox", Reason: unsupported}, -- cgit mrf-deployment