aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-01-16 14:50:43 +0100
committerAndrey Konovalov <andreyknvl@gmail.com>2019-01-16 19:19:53 +0100
commitc2faf9b2d5b583f53d01b8b483e26b61ed72cbbf (patch)
tree8223752709973ec927c4291fda3f3341a5ef0ea6 /tools
parentb5df78dc5d994bc61f1ecee2c5c85313178f392e (diff)
all: detect extra coverage support
Based on whether the kernel supports KCOV_REMOTE_ENABLE ioctl.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-execprog/execprog.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go
index 1a4468063..82fa00906 100644
--- a/tools/syz-execprog/execprog.go
+++ b/tools/syz-execprog/execprog.go
@@ -288,6 +288,9 @@ func createConfig(target *prog.Target, entries []*prog.LogEntry, features *host.
}
execOpts.Flags |= ipc.FlagCollectComps
}
+ if features[host.FeatureExtraCoverage].Enabled {
+ config.Flags |= ipc.FlagExtraCover
+ }
if *flagFaultCall >= 0 {
config.Flags |= ipc.FlagEnableFault
execOpts.Flags |= ipc.FlagInjectFault