diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-08-20 10:26:12 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-08-28 11:36:44 +0000 |
| commit | 3984c91733166d63d43fd5d4ca0a61a46e666a26 (patch) | |
| tree | 02537be4a6f2745094839369eff74c36258f29a7 /pkg/manager | |
| parent | 6c8b90a1abc330c4e05307ddb268b084a02cd2a3 (diff) | |
pkg/manager: store tail reports
Send only the first report to dashboard.
Diffstat (limited to 'pkg/manager')
| -rw-r--r-- | pkg/manager/crash.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/manager/crash.go b/pkg/manager/crash.go index 44df6e63e..cc36db721 100644 --- a/pkg/manager/crash.go +++ b/pkg/manager/crash.go @@ -17,6 +17,7 @@ import ( "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/mgrconfig" "github.com/google/syzkaller/pkg/osutil" + "github.com/google/syzkaller/pkg/report" "github.com/google/syzkaller/prog" ) @@ -85,9 +86,10 @@ func (cs *CrashStore) SaveCrash(crash *Crash) (bool, error) { } osutil.WriteFile(filename, data) } + reps := append([]*report.Report{crash.Report}, crash.TailReports...) writeOrRemove("log", crash.Output) writeOrRemove("tag", []byte(cs.Tag)) - writeOrRemove("report", crash.Report.Report) + writeOrRemove("report", report.MergeReportBytes(reps)) writeOrRemove("machineInfo", crash.MachineInfo) return first, nil |
