aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/crash
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-06-15 14:31:29 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-05 11:29:44 +0000
commitc8a08b381ddaa35d4e58e91b7d7d215c9fc66b87 (patch)
treea94782d4748cbc215b553910e22182ebf9cf75aa /pkg/report/crash
parentd9b02a53a6f8a9f6af36ffdf2ac399e3376de807 (diff)
pkg/report: move report.Type to pkg/report/crash
This will help avoid a circular dependency pkg/vcs -> pkg/report -> pkg/vcs.
Diffstat (limited to 'pkg/report/crash')
-rw-r--r--pkg/report/crash/types.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkg/report/crash/types.go b/pkg/report/crash/types.go
new file mode 100644
index 000000000..e83853024
--- /dev/null
+++ b/pkg/report/crash/types.go
@@ -0,0 +1,21 @@
+// 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 crash
+
+type Type string
+
+const (
+ UnknownType = Type("")
+ Hang = Type("HANG")
+ MemoryLeak = Type("LEAK")
+ DataRace = Type("DATARACE")
+ UnexpectedReboot = Type("REBOOT")
+ UBSAN = Type("UBSAN")
+ Bug = Type("BUG")
+ Warning = Type("WARNING")
+ KASAN = Type("KASAN")
+ LockdepBug = Type("LOCKDEP")
+ AtomicSleep = Type("ATOMIC_SLEEP")
+ KMSAN = Type("KMSAN")
+)