shim_defs.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. #ifndef _SHIM_DEFS_H_
  4. #define _SHIM_DEFS_H_
  5. #define MIGRATE_MORE_GIPC 0
  6. #define HASH_GIPC 0
  7. /*
  8. * If enable CPSTORE_DERANDOMIZATION, the library OS will try to
  9. * load the checkpoint (either from the parent or a file) at the
  10. * exact address it was created. Currently this option is disabled
  11. * to prevent internal fragmentation of virtual memory space.
  12. */
  13. #define CPSTORE_DERANDOMIZATION 0
  14. #define DEFAULT_HEAP_MIN_SIZE (256 * 1024 * 1024) /* 256MB */
  15. #define DEFAULT_MEM_MAX_NPAGES (1024 * 1024) /* 4GB */
  16. #define DEFAULT_BRK_MAX_SIZE (256 * 1024) /* 256KB */
  17. #define DEFAULT_SYS_STACK_SIZE (256 * 1024) /* 256KB */
  18. #define CP_INIT_VMA_SIZE (64 * 1024 * 1024) /* 64MB */
  19. #define EXECVE_RTLD 1
  20. #define ENABLE_ASLR 1
  21. /* debug message printout */
  22. #define DEBUGBUF_SIZE 256
  23. #define DEBUGBUF_BREAK 0
  24. #define DEFAULT_VMA_COUNT 64
  25. /* System V IPC semaphore / message queue migration */
  26. #define MIGRATE_SYSV_SEM 0
  27. #define MIGRATE_SYSV_MSG 1
  28. /* ELF aux vectors */
  29. #define REQUIRED_ELF_AUXV 7 /* number of LibOS-supported vectors */
  30. #define REQUIRED_ELF_AUXV_SPACE 16 /* extra memory space (in bytes) */
  31. #endif /* _SHIM_DEFS_H_ */