aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-03-23 13:50:36 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-03-28 12:03:35 +0200
commitcdcc8b96dd9215a47ce5ce1074567a1be93eda5f (patch)
tree943129722632f399ee55e1245f7c10eaf98a5f8a /pkg/mgrconfig
parentfc79262e5b62a97a2338b247a1c31ee1c79decc2 (diff)
all: collect raw coverage
Raw coverage might be important when e.g. analysing the origins of out-of-place coverage in coverage reports or understanding why the fuzzer could not reach deeper code. If "raw_cover" is set to true, syzkaller will remember unsorted and unduplicated coverage (PCs) for each its corpus program.
Diffstat (limited to 'pkg/mgrconfig')
-rw-r--r--pkg/mgrconfig/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go
index 5d4a9f8f5..c13e6f452 100644
--- a/pkg/mgrconfig/config.go
+++ b/pkg/mgrconfig/config.go
@@ -132,6 +132,11 @@ type Config struct {
// eg. "0xffffffff81000000:0x10\n"
CovFilter covFilterCfg `json:"cover_filter,omitempty"`
+ // For each prog in the corpus, remember the raw array of PCs obtained from the kernel.
+ // It can be useful for debugging syzkaller descriptions and syzkaller itself.
+ // Disabled by default as it slows down fuzzing.
+ RawCover bool `json:"raw_cover"`
+
// Reproduce, localize and minimize crashers (default: true).
Reproduce bool `json:"reproduce"`