2017-01-08 16:20:32 +00:00
|
|
|
// 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.
|
|
|
|
|
2017-06-14 11:05:05 +00:00
|
|
|
//go:generate bash -c "gcc kvm_gen.cc kvm.S -o kvm_gen && ./kvm_gen > kvm.S.h && rm ./kvm_gen"
|
2017-01-08 16:20:32 +00:00
|
|
|
|
|
|
|
package executor
|
|
|
|
|
2017-01-17 18:04:37 +00:00
|
|
|
// int test_copyin();
|
2017-04-27 18:31:00 +00:00
|
|
|
// int test_csum_inet();
|
|
|
|
// int test_csum_inet_acc();
|
2017-01-08 16:20:32 +00:00
|
|
|
// int test_kvm();
|
|
|
|
import "C"
|
|
|
|
|
2017-01-17 18:04:37 +00:00
|
|
|
func testCopyin() int {
|
|
|
|
return int(C.test_copyin())
|
|
|
|
}
|
|
|
|
|
2017-04-27 18:31:00 +00:00
|
|
|
func testCsumInet() int {
|
|
|
|
return int(C.test_csum_inet())
|
|
|
|
}
|
|
|
|
|
|
|
|
func testCsumInetAcc() int {
|
|
|
|
return int(C.test_csum_inet_acc())
|
|
|
|
}
|
|
|
|
|
2017-01-08 16:20:32 +00:00
|
|
|
func testKVM() int {
|
|
|
|
return int(C.test_kvm())
|
|
|
|
}
|