aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-10-14 18:40:38 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-10-16 14:21:54 +0200
commit63c290f77ca942eb8fab8f85cfcf3c432b2a0905 (patch)
treefb4fbc0ef3a78b293273c18cb3103b09f81f59ac /pkg
parent7553c19941cd79256162135700218d625917712a (diff)
pkg/host: add akaros support
Diffstat (limited to 'pkg')
-rw-r--r--pkg/host/host_akaros.go19
1 files changed, 19 insertions, 0 deletions
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
+}