aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/init.go
blob: 8e67fd7544f4d5f88bcf36740cb388ffd82cf594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package test

import (
	"github.com/google/syzkaller/prog"
	"github.com/google/syzkaller/sys/targets"
	"github.com/google/syzkaller/sys/test/gen"
)

func init() {
	prog.RegisterTarget(gen.Target_64, initTarget)
	prog.RegisterTarget(gen.Target_64_fork, initTarget)
	prog.RegisterTarget(gen.Target_32_shmem, initTarget)
	prog.RegisterTarget(gen.Target_32_fork_shmem, initTarget)
}

func initTarget(target *prog.Target) {
	target.MakeMmap = targets.MakeSyzMmap(target)
}