shim_defs.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _SHIM_DEFS_H_
  2. #define _SHIM_DEFS_H_
  3. #define MIGRATE_MORE_GIPC 0
  4. #define HASH_GIPC 0
  5. /*
  6. * If enable CPSTORE_DERANDOMIZATION, the library OS will try to
  7. * load the checkpoint (either from the parent or a file) at the
  8. * exact address it was created. Currently this option is disabled
  9. * to prevent internal fragmentation of virtual memory space.
  10. */
  11. #define CPSTORE_DERANDOMIZATION 0
  12. #define DEFAULT_HEAP_MIN_SIZE (256 * 1024 * 1024) /* 256MB */
  13. #define DEFAULT_MEM_MAX_NPAGES (1024 * 1024) /* 4GB */
  14. #define DEFAULT_BRK_MAX_SIZE (256 * 1024) /* 256KB */
  15. #define DEFAULT_SYS_STACK_SIZE (256 * 1024) /* 256KB */
  16. #define CP_INIT_VMA_SIZE (64 * 1024 * 1024) /* 64MB */
  17. #define EXECVE_RTLD 1
  18. #define ENABLE_ASLR 1
  19. /* debug message printout */
  20. #define DEBUGBUF_SIZE 256
  21. #define DEBUGBUF_BREAK 0
  22. #define DEFAULT_VMA_COUNT 64
  23. /* System V IPC semaphore / message queue migration */
  24. #define MIGRATE_SYSV_SEM 0
  25. #define MIGRATE_SYSV_MSG 1
  26. /* ELF aux vectors */
  27. #define REQUIRED_ELF_AUXV 7 /* number of LibOS-supported vectors */
  28. #define REQUIRED_ELF_AUXV_SPACE 16 /* extra memory space (in bytes) */
  29. #endif /* _SHIM_DEFS_H_ */