mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-28 13:50:52 +00:00
9fe4bdc5f1
Make as much code as possible shared between all OSes. In particular main is now common across all OSes. Make more code shared between executor and csource (in particular, loop function and threaded execution logic). Also make loop and threaded logic shared across all OSes. Make more posix/unix code shared across OSes (e.g. signal handling, pthread creation, etc). Plus other changes along similar lines. Also support test OS in executor (based on portable posix) and add 4 arches that cover all execution modes (fork server/no fork server, shmem/no shmem). This change paves way for testing of executor code and allows to preserve consistency across OSes and executor/csource.
187 lines
4.4 KiB
C
187 lines
4.4 KiB
C
// AUTOGENERATED FILE
|
|
|
|
#if GOOS_akaros
|
|
#define GOOS "akaros"
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "36f0e5da1becfe451b2936a2b8b1739deb53c609"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_freebsd
|
|
#define GOOS "freebsd"
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "fd7de83a3ebf8e454b041bbfe7513ed4a139d44d"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_fuchsia
|
|
#define GOOS "fuchsia"
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "9540132f74bbe9bfb7e8f215844bdb3a88b9a665"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 0
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_arm64
|
|
#define GOARCH "arm64"
|
|
#define SYZ_REVISION "ebb425942f2bbfd2db293e4a2a0a417f6aaafb1c"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 0
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_linux
|
|
#define GOOS "linux"
|
|
|
|
#if GOARCH_386
|
|
#define GOARCH "386"
|
|
#define SYZ_REVISION "d16df4bd3b5d63c53207d8d48f0e7aa8375ae471"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "22bac64bd4f91440dd851726a290b9eb1f1ae092"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_arm
|
|
#define GOARCH "arm"
|
|
#define SYZ_REVISION "c46361b24a9d8c4d25f99c6a74ed373b73b0cdd1"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_arm64
|
|
#define GOARCH "arm64"
|
|
#define SYZ_REVISION "e1ce203bf0cb9e092e65fc6ca9cd1cde96e19316"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_ppc64le
|
|
#define GOARCH "ppc64le"
|
|
#define SYZ_REVISION "1ccba534d5c6adaffc5ebfbea33c22833f5cb846"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_netbsd
|
|
#define GOOS "netbsd"
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "cea6c87ab1f9e36df1927913a619e71cd29abcbf"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_test
|
|
#define GOOS "test"
|
|
|
|
#if GOARCH_32_fork_shmem
|
|
#define GOARCH "32_fork_shmem"
|
|
#define SYZ_REVISION "f3f80dea03f2b372f892da4a49e6af7f47106120"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_32_shmem
|
|
#define GOARCH "32_shmem"
|
|
#define SYZ_REVISION "9819b8a5a8ea14bf3a71d86bb2012bafd6ab25b6"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 0
|
|
#define SYZ_EXECUTOR_USES_SHMEM 1
|
|
#define SYZ_PAGE_SIZE 8192
|
|
#define SYZ_NUM_PAGES 2048
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_64
|
|
#define GOARCH "64"
|
|
#define SYZ_REVISION "96964f599c9870f5d27e4d6054b0d16011652c81"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 0
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#if GOARCH_64_fork
|
|
#define GOARCH "64_fork"
|
|
#define SYZ_REVISION "96f1f19d85a4d091cba7b036633c3b48ccfe4439"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 8192
|
|
#define SYZ_NUM_PAGES 2048
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if GOOS_windows
|
|
#define GOOS "windows"
|
|
|
|
#if GOARCH_amd64
|
|
#define GOARCH "amd64"
|
|
#define SYZ_REVISION "e9562f6b9973e9e9a9522fd8ec12b4e913f13b4c"
|
|
#define SYZ_EXECUTOR_USES_FORK_SERVER 0
|
|
#define SYZ_EXECUTOR_USES_SHMEM 0
|
|
#define SYZ_PAGE_SIZE 4096
|
|
#define SYZ_NUM_PAGES 4096
|
|
#define SYZ_DATA_OFFSET 536870912
|
|
#endif
|
|
|
|
#endif
|