aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/fuchsia.go
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2018-12-08 11:00:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-08 18:59:10 +0100
commit4e1aade2feeb2b9c8b40426b39296d2ae9aa0b99 (patch)
treea6297914f8b6839458511e9d593c01858cf7dda5 /pkg/report/fuchsia.go
parent2b3ea5d7e046d4827e367319b0c1b0717ea315b0 (diff)
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.
Diffstat (limited to 'pkg/report/fuchsia.go')
-rw-r--r--pkg/report/fuchsia.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/report/fuchsia.go b/pkg/report/fuchsia.go
index 11b8c1a35..725c0b302 100644
--- a/pkg/report/fuchsia.go
+++ b/pkg/report/fuchsia.go
@@ -13,6 +13,7 @@ import (
"strings"
"github.com/google/syzkaller/pkg/symbolizer"
+ "github.com/google/syzkaller/sys/targets"
"github.com/ianlancetaylor/demangle"
)
@@ -38,12 +39,13 @@ var (
}
)
-func ctorFuchsia(kernelSrc, kernelObj string, ignores []*regexp.Regexp) (Reporter, []string, error) {
+func ctorFuchsia(target *targets.Target, kernelSrc, kernelObj string,
+ ignores []*regexp.Regexp) (Reporter, []string, error) {
ctx := &fuchsia{
ignores: ignores,
}
if kernelObj != "" {
- ctx.obj = filepath.Join(kernelObj, "zircon.elf")
+ ctx.obj = filepath.Join(kernelObj, target.KernelObject)
}
suppressions := []string{
"fatal exception: process /tmp/syz-fuzzer", // OOM presumably