aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
Commit message (Collapse)AuthorAgeFilesLines
* sys: move test syscalls to a separate targetDmitry Vyukov2017-12-171-2/+0
| | | | | | We have them in linux solely for historical reasons. Fixes #462
* sys/linux: open files from /procDmitry Vyukov2017-11-271-0/+2
|
* sys/linux: remove get_kernel_syms, add quotactl syscallDmitry Vyukov2017-11-201-1/+13
| | | | | | get_kernel_syms does not seem to be present upstream. Describe an old quotactl syscall. Also fix umount/umount2 names in kallsyms.
* all: basic building on netbsdDmitry Vyukov2017-10-231-0/+21
| | | | | This just makes make TARGETOS=netbsd succeed. We don't yet have prog target for netbsd.
* executor, pkg/ipc: unify ipc protocol between linux and other OSesDmitry Vyukov2017-10-165-0/+27
| | | | | | | | | | | | | | | | | We currently use more complex and functional protocol on linux, and a simple ad-hoc protocol on other OSes. This leads to code duplication in both ipc and executor. Linux supports coverage, shared memory communication and fork server, which would also be useful for most other OSes. Unify communication protocol and parametrize it by (1) use of shmem or only pipes, (2) use of fork server. This reduces duplication in ipc and executor and will allow to support the useful features for other OSes easily. Finally, this fixes akaros support as it currently uses syz-stress running on host (linux) and executor running on akaros.
* pkg/host: add akaros supportDmitry Vyukov2017-10-161-0/+19
|
* all: basic freebsd supportDmitry Vyukov2017-10-021-0/+17
| | | | For now we just make Go part build for freebsd.
* pkg/host: add windows stubDmitry Vyukov2017-09-251-0/+17
|
* pkg/host: add fuchsia supportDmitry Vyukov2017-09-203-0/+21
|
* pkg/compiler: don't genererate missing syscallsDmitry Vyukov2017-09-151-3/+0
| | | | | | | | We used to generate them only because manager had no idea what arch it is testing. So syscalls numbers had to match between all arches. This is not needed anymore. Also don't generate unreferenced structs/resources.
* prog: remove default target and all global stateDmitry Vyukov2017-09-152-12/+16
| | | | | | Now each prog function accepts the desired target explicitly. No global, implicit state involved. This is much cleaner and allows cross-OS/arch testing, etc.
* syz-manager/mgrconfig: explicitly specify target in configDmitry Vyukov2017-09-151-0/+5
| | | | | Add target config parameter (e.g. linux/amd64) which controls target OS/arch. No more explicit assumptions about target.
* prog, sys: move types to progDmitry Vyukov2017-09-052-21/+22
| | | | | | | | | | | 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-052-11/+11
| | | | | In preparation for moving sys types to prog to avoid confusion between sys.Call and prog.Call.
* pkg/compiler: restore generation of unsupported syscallsDmitry Vyukov2017-09-021-0/+3
| | | | | | Unfortunately this is sitll needed, see the added comment. Update #191
* pkg/compiler: check and generate typesDmitry Vyukov2017-09-021-3/+0
| | | | | | Move most of the logic from sysgen to pkg/compiler. Update #217
* pkg/host: move from hostDmitry Vyukov2017-06-172-0/+238