diff options
| author | Grigory Bazilevich <g.bazilevich@ispras.ru> | 2026-03-11 09:45:28 +0300 |
|---|---|---|
| committer | Grigory Bazilevich <g.bazilevich@ispras.ru> | 2026-03-11 09:46:11 +0300 |
| commit | 9eca1358882afaf2fca59c50686db1b8ef681850 (patch) | |
| tree | 53ca099978e6015cbed409922219a229ce2814e7 /syz-manager | |
| parent | 3fe1aeddbc74e43e8561db61cdaad620c5993d92 (diff) | |
syz-manager: information about probability-only inputs in db
Diffstat (limited to 'syz-manager')
| -rw-r--r-- | syz-manager/manager.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go index ed985c2fc..77ad2a127 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -411,6 +411,7 @@ func (mgr *Manager) heartbeatLoop() { for _, stat := range stat.Collect(stat.Console) { fmt.Fprintf(buf, "%v=%v ", stat.Name, stat.Value) } + fmt.Fprintf(buf, "%v=%v ", "lastMinCorpus", mgr.lastMinCorpus) log.Logf(0, "%s", buf.String()) } } @@ -993,8 +994,12 @@ func (mgr *Manager) corpusInputHandler(updates <-chan corpus.NewItemEvent) { // We only save new progs into the corpus.db file. continue } + var seq uint64 = 0 + if update.ProbOnly { + seq = db.SeqProb + } mgr.corpusDBMu.Lock() - mgr.corpusDB.Save(update.Sig, update.ProgData, 0) + mgr.corpusDB.Save(update.Sig, update.ProgData, seq) if err := mgr.corpusDB.Flush(); err != nil { log.Errorf("failed to save corpus database: %v", err) } |
