aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl_test.go
Commit message (Collapse)AuthorAgeFilesLines
* prog, sys: move types to progDmitry Vyukov2017-09-051-62/+0
| | | | | | | | | | | Large overhaul moves syscalls and arg types from sys to prog. Sys package now depends on prog and contains only generated descriptions of syscalls. Introduce prog.Target type that encapsulates all targer properties, like syscall list, ptr/page size, etc. Also moves OS-dependent pieces like mmap call generation from prog to sys. Update #191
* sys: rename Call to SyscallDmitry Vyukov2017-09-051-13/+13
| | | | | In preparation for moving sys types to prog to avoid confusion between sys.Call and prog.Call.
* sys: add a new test for resource ctorsDmitry Vyukov2017-06-061-0/+10
| | | | | | | TestTransitivelyEnabledCalls detects when there is a resource that has no ctors, but it does not provide any details (e.g. resource name). Add another test that detects exact resource that can't be created.
* all: speed up testsDmitry Vyukov2017-05-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark tests as parallel where makes sense. Speed up sys.TransitivelyEnabledCalls. Execution time is now: ok github.com/google/syzkaller/config 0.172s ok github.com/google/syzkaller/cover 0.060s ok github.com/google/syzkaller/csource 3.081s ok github.com/google/syzkaller/db 0.395s ok github.com/google/syzkaller/executor 0.060s ok github.com/google/syzkaller/fileutil 0.106s ok github.com/google/syzkaller/host 1.530s ok github.com/google/syzkaller/ifuzz 0.491s ok github.com/google/syzkaller/ipc 1.374s ok github.com/google/syzkaller/log 0.014s ok github.com/google/syzkaller/prog 2.604s ok github.com/google/syzkaller/report 0.045s ok github.com/google/syzkaller/symbolizer 0.062s ok github.com/google/syzkaller/sys 0.365s ok github.com/google/syzkaller/syz-dash 0.014s ok github.com/google/syzkaller/syz-hub/state 0.427s ok github.com/google/syzkaller/vm 0.052s However, main time is still taken by rebuilding sys package. Fixes #182
* sys: minor assorted improvements to descriptionsDmitry Vyukov2017-02-031-2/+4
|
* sys: don't add clock_gettime alwaysDmitry Vyukov2017-01-091-0/+13
| | | | | | | | | | Currently we always enable clock_gettime in config. This is required since the call is needed for generation of timespec/timeval structs. The negative side effect is that one gets clock_gettime even if he wants to fuzz a small set of unrelated syscalls. Don't enable clock_gettime by default. Instead handle timeval/timespec as other resources.
* host: detect unsupported syscallsDmitry Vyukov2015-12-271-0/+35
Also detect transitively unsupported syscalls, that is, syscalls for which all syscalls that can create input arguments are disabled.