From 9eff3337ee5c407d4156eccb7bdea4d666e492fc Mon Sep 17 00:00:00 2001 From: Cheng-Min Chiang Date: Wed, 2 Sep 2020 17:23:49 -0700 Subject: 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 --- dashboard/dashapi/dashapi.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dashboard/dashapi/dashapi.go') 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 -- cgit mrf-deployment