From c8a08b381ddaa35d4e58e91b7d7d215c9fc66b87 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 15 Jun 2023 14:31:29 +0200 Subject: pkg/report: move report.Type to pkg/report/crash This will help avoid a circular dependency pkg/vcs -> pkg/report -> pkg/vcs. --- pkg/report/crash/types.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pkg/report/crash/types.go (limited to 'pkg/report/crash') 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") +) -- cgit mrf-deployment