From 4e1aade2feeb2b9c8b40426b39296d2ae9aa0b99 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Sat, 8 Dec 2018 11:00:59 +0100 Subject: pkg/report: pass the target to each OS report constructor In order to use the already defined kernel name in sys/targets to reduce duplications. --- pkg/report/gvisor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/report/gvisor.go') diff --git a/pkg/report/gvisor.go b/pkg/report/gvisor.go index 44ef39c4a..d988de5cf 100644 --- a/pkg/report/gvisor.go +++ b/pkg/report/gvisor.go @@ -6,13 +6,16 @@ package report import ( "bytes" "regexp" + + "github.com/google/syzkaller/sys/targets" ) type gvisor struct { ignores []*regexp.Regexp } -func ctorGvisor(kernelSrc, kernelObj string, ignores []*regexp.Regexp) (Reporter, []string, error) { +func ctorGvisor(target *targets.Target, kernelSrc, kernelObj string, + ignores []*regexp.Regexp) (Reporter, []string, error) { ctx := &gvisor{ ignores: ignores, } -- cgit mrf-deployment