From 63c290f77ca942eb8fab8f85cfcf3c432b2a0905 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 14 Oct 2017 18:40:38 +0200 Subject: pkg/host: add akaros support --- pkg/host/host_akaros.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkg/host/host_akaros.go (limited to 'pkg') diff --git a/pkg/host/host_akaros.go b/pkg/host/host_akaros.go new file mode 100644 index 000000000..4e3065d91 --- /dev/null +++ b/pkg/host/host_akaros.go @@ -0,0 +1,19 @@ +// 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. + +// +build akaros + +package host + +import ( + "github.com/google/syzkaller/prog" +) + +// DetectSupportedSyscalls returns list on supported syscalls on host. +func DetectSupportedSyscalls(target *prog.Target) (map[*prog.Syscall]bool, error) { + supported := make(map[*prog.Syscall]bool) + for _, c := range target.Syscalls { + supported[c] = true + } + return supported, nil +} -- cgit mrf-deployment