aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test.go
blob: 1f18dd3bfb71c2a2c0b6c046355157030e15f82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

//go:generate bash -c "gcc kvm_gen.cc kvm.S -o kvm_gen && ./kvm_gen > kvm.S.h && rm ./kvm_gen"

package executor

// int test_copyin();
// int test_csum_inet();
// int test_csum_inet_acc();
// int test_kvm();
import "C"

func testCopyin() int {
	return int(C.test_copyin())
}

func testCsumInet() int {
	return int(C.test_csum_inet())
}

func testCsumInetAcc() int {
	return int(C.test_csum_inet_acc())
}

func testKVM() int {
	return int(C.test_kvm())
}