aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ipc/ipc_simple.go
Commit message (Collapse)AuthorAgeFilesLines
* executor, pkg/ipc: unify ipc protocol between linux and other OSesDmitry Vyukov2017-10-161-109/+0
| | | | | | | | | | | | | | | | | 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/ipc: don't send program padding to executorDmitry Vyukov2017-10-121-2/+3
| | | | | | Currently we always send 2MB of data to executor in ipc_simple.go. Send only what's consumed by the program, and don't send the trailing zeros. Serialized programs usually take only few KBs.
* pkg/ipc, pkg/osutil: remove filepath.Abs fuchsia workaroundsDmitry Vyukov2017-10-121-13/+10
| | | | | This claimed to be fixed: https://fuchsia.atlassian.net/browse/DNO-158
* pkg/ipc: extend error when fail to start executorDmitry Vyukov2017-10-101-1/+1
| | | | | | We currently return raw error, so sometimes it's hard to tell even what call produced the error (e.g. just "invalid argument"). Extend the error so that it's clear that it comes from cmd.Start.
* all: basic freebsd supportDmitry Vyukov2017-10-021-1/+1
| | | | For now we just make Go part build for freebsd.
* pkg/ipc: fix windowsDmitry Vyukov2017-09-271-1/+4
| | | | | Abs does not work on fuchsia only, use it on windows. Also maintain stats.
* pkg/ipc: windows portDmitry Vyukov2017-09-251-0/+108