aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test.go
blob: e9709b8d0b2a199c61b87c097ad71d63c1a921fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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"

package executor

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

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

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