diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-08-16 17:52:41 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-10-09 10:22:42 +0000 |
| commit | 28021a51a672ec3f58e4e738005baaa98676521b (patch) | |
| tree | 23d7d8e71cdf2e6ebbd6a1ee6d50e721aae6f02b /pkg | |
| parent | 22d57370e2f9ac0581d3a6257030c79b3d758855 (diff) | |
dashboard: export bugs for stats instead of analysis
Building a proper stats analysis tool is definitely out of syzkaller
dashboard's scope.
Delete the code that did not turn out to be useful in practice and
replace it with an export of bug info relevant for statistics.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/stats/syzbotstats/bug.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/stats/syzbotstats/bug.go b/pkg/stats/syzbotstats/bug.go new file mode 100644 index 000000000..11e97fac1 --- /dev/null +++ b/pkg/stats/syzbotstats/bug.go @@ -0,0 +1,29 @@ +// Copyright 2023 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +package syzbotstats + +import "time" + +type BugStatSummary struct { + Title string + IDs []string // IDs used by syzbot for this bug. + ReleasedTime time.Time // When the bug was published. + ReproTime time.Time // When we found the reproducer. + CauseBisectTime time.Time // When we found cause bisection. + ResolvedTime time.Time // When the bug was resolved. + Status BugStatus + Subsystems []string + Strace bool // Whether we managed to reproduce under strace. + HitsPerDay float64 // Average number of bug hits per day. +} + +type BugStatus string + +const ( + BugFixed BugStatus = "fixed" + BugInvalidated BugStatus = "invalidated" + BugAutoInvalidated BugStatus = "auto-invalidated" + BugDup BugStatus = "dup" + BugPending BugStatus = "pending" +) |
