aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi/dashapi.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-04-19 12:21:48 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-04-29 17:16:33 +0200
commit316eb530e5b1c0c0dacd5e17f52fd315a48fd970 (patch)
treee177dfe4403b92831a39d5b4a4aff36050e432fc /dashboard/dashapi/dashapi.go
parent2d51d57a71659b063ddcb21cc50845d05d39708b (diff)
dashboard: remember and display strace flag
Receive the information, whether the crash log contains strace output, from the syz-manager. Adjust bug reporting email depending on that flag.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
-rw-r--r--dashboard/dashapi/dashapi.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index a78e25073..bcd964852 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -251,6 +251,12 @@ func (dash *Dashboard) UploadCommits(commits []Commit) error {
return dash.Query("upload_commits", &CommitPollResultReq{commits}, nil)
}
+type CrashFlags int64
+
+const (
+ CrashUnderStrace CrashFlags = 1 << iota
+)
+
// Crash describes a single kernel crash (potentially with repro).
type Crash struct {
BuildID string // refers to Build.ID
@@ -261,6 +267,7 @@ type Crash struct {
Maintainers []string // deprecated in favor of Recipients
Recipients Recipients
Log []byte
+ Flags CrashFlags
Report []byte
MachineInfo []byte
// The following is optional and is filled only after repro.
@@ -355,6 +362,7 @@ type BugReport struct {
SyzkallerCommit string
Log []byte
LogLink string
+ LogHasStrace bool
Report []byte
ReportLink string
ReproC []byte