X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=config.h;h=8eaca87430062d788bac17923f2097d77aad684e;hb=HEAD;hp=ed0b6bac2e62e02043570503f552a73e4f028ffd;hpb=54210d33af73ae7c74f2d416ab0e7bd472379e12;p=c11tester.git diff --git a/config.h b/config.h index ed0b6bac..8eaca874 100644 --- a/config.h +++ b/config.h @@ -31,18 +31,14 @@ /** Snapshotting configurables */ -/** - * If USE_MPROTECT_SNAPSHOT=2, then snapshot by tuned mmap() algorithm - * If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect() - * If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */ -#define USE_MPROTECT_SNAPSHOT 0 - /** Size of signal stack */ #define SIGSTACKSIZE 65536 /** Page size configuration */ #define PAGESIZE 4096 +#define TLS 1 + /** Thread parameters */ /* Size of stack to allocate for a thread. */ @@ -52,9 +48,24 @@ #define SHADOWBASETABLES 4 /** Enable debugging assertions (via ASSERT()) */ -#define CONFIG_ASSERT +//#define CONFIG_ASSERT /** Enable mitigations against fork handlers that call into locks... */ #define FORK_HANDLER_HACK +/** Enable smart fuzzer */ +//#define NEWFUZZER + +/** Define semantics of volatile memory operations. */ +#define memory_order_volatile_load memory_order_acquire +#define memory_order_volatile_store memory_order_release + +//#define memory_order_volatile_load memory_order_relaxed +//#define memory_order_volatile_store memory_order_relaxed + +//#define COLLECT_STAT +#define REPORT_DATA_RACES + +//#define PRINT_TRACE + #endif