diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-04-06 18:46:49 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-04-06 18:47:56 +0200 |
| commit | 4daf8570eba286299489fc3ebc7d788c458bb47a (patch) | |
| tree | 99b413a3fad8b7f7bf87c6a1fe957aa0a6112d75 /tools | |
| parent | 48a846e42b1ef210d410b783656c59d5c2827e11 (diff) | |
pkg/host: explain why syscalls are disabled
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-stress/stress.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index f09b08ed6..73073c392 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -139,7 +139,7 @@ func buildCallList(target *prog.Target) map[*prog.Syscall]bool { } return calls } - calls, err := host.DetectSupportedSyscalls(target, "none") + calls, disabled, err := host.DetectSupportedSyscalls(target, "none") if err != nil { Logf(0, "failed to detect host supported syscalls: %v", err) calls = make(map[*prog.Syscall]bool) @@ -147,10 +147,8 @@ func buildCallList(target *prog.Target) map[*prog.Syscall]bool { calls[c] = true } } - for _, c := range target.Syscalls { - if !calls[c] { - Logf(0, "disabling unsupported syscall: %v", c.Name) - } + for c, reason := range disabled { + Logf(0, "disabling unsupported syscall: %v: %v", c.Name, reason) } trans := target.TransitivelyEnabledCalls(calls) for c := range calls { |
