aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec_test.go
Commit message (Collapse)AuthorAgeFilesLines
* all: spot optimizationsDmitry Vyukov2017-01-201-2/+12
| | | | | | | | | | | | | A bunch of spot optmizations after cpu/memory profiling: 1. Optimize hot-path coverage comparison in fuzzer. 2. Don't allocate and copy serialized program, serialize directly into shmem. 3. Reduce allocations during parsing of output shmem (encoding/binary sucks). 4. Don't allocate and copy coverage arrays, refer directly to the shmem region (we are not going to mutate them). 5. Don't validate programs outside of tests, validation allocates tons of memory. 6. Replace the choose primitive with simpler switches. Choose allocates fullload of memory (for int, func, and everything the func refers). 7. Other minor optimizations.
* prog, sys: fix padding varlen structsAndrey Konovalov2017-01-191-0/+9
|
* prog: add tests for alignment and offsetsAndrey Konovalov2017-01-181-2/+74
|
* prog: add bitfields to templatesAndrey Konovalov2017-01-171-36/+51
| | | | | | Now it's possible to use `int32:18` to denote a bitfield of size 18 as a struct field. This fixes #72.
* sys: add proc type to denote per proccess integersAndrey Konovalov2016-11-251-2/+2
|
* Add tests for big-endian intsAndrey Konovalov2016-10-131-0/+22
|
* Add exec serialize tests for array[int8]Andrey Konovalov2016-10-041-0/+19
|
* sys: add padding to structs againDmitry Vyukov2016-09-291-2/+24
| | | | | | | | Struct padding was accidentially lost after: 852e3d2eae98a913b7ec91822ba4dc61059a6955 Restore it. Now with tests. Fixes #78
* prog: add a test for union layoutDmitry Vyukov2016-09-291-0/+10
| | | | | This is a retrospect tests for the union bug fixed in: 91eb1b922fd95bfaa5d8b0aad16902a73f3fe3d1
* sys, prog: add tests for description parsing and serializationDmitry Vyukov2016-09-281-3/+57
| | | | | | | | | | Add sys/test.txt file with description of syscalls for tests. These descriptions can be used to ensure that we can parse everything we clain we can parse. Use these descriptions to write several tests for exec serialization (one test shows that alignment handling is currently incorrect). These test descriptions can also be used to write e.g. mutation tests. Update #78
* prog: add a simple test for exec encodingDmitry Vyukov2016-09-241-0/+48