aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi
diff options
context:
space:
mode:
authorCheng-Min Chiang <chmnchiang@google.com>2020-09-02 17:23:49 -0700
committerDmitry Vyukov <dvyukov@google.com>2020-09-14 15:00:02 +0200
commit9eff3337ee5c407d4156eccb7bdea4d666e492fc (patch)
treea1e61c38d1d4f47bc7017a8e5c8e9d9b06fce6d8 /dashboard/dashapi
parentdf4f5a9c4a22ded414b447d4d790c53d4d2a86e2 (diff)
dashboard/app: send machine information to dashboard
- Change syz-manager so that it will send machine info the first time a crash occurs. - Add a field in entities.Crash to store machine info. - Add a field in dashapi.BugReport to store machine info. - Change the HTML template and struct uiCrash to display machine info. - Add a test to make sure that the link to machine info appears on the webpage. Update #466
Diffstat (limited to 'dashboard/dashapi')
-rw-r--r--dashboard/dashapi/dashapi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index 2c2a993ea..4748905b4 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -241,6 +241,7 @@ type Crash struct {
Recipients Recipients
Log []byte
Report []byte
+ MachineInfo []byte
// The following is optional and is filled only after repro.
ReproOpts []byte
ReproSyz []byte
@@ -333,6 +334,8 @@ type BugReport struct {
ReproCLink string
ReproSyz []byte
ReproSyzLink string
+ MachineInfo []byte
+ MachineInfoLink string
CrashID int64 // returned back in BugUpdate
NumCrashes int64
HappenedOn []string // list of kernel repo aliases