diff options
Diffstat (limited to 'ww_mutex_test.h')
-rw-r--r-- | ww_mutex_test.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ww_mutex_test.h b/ww_mutex_test.h new file mode 100644 index 0000000..8911ea7 --- /dev/null +++ b/ww_mutex_test.h @@ -0,0 +1,20 @@ +/* + * Wound/Wait Mutex testing module. + * Copyright (C) 2016-2018 VMWare Inc. + */ + +#ifndef _WW_MUTEX_TEST_H_ +#define _WW_MUTEX_TEST_H_ + +#undef WW_BUILTIN /* Use kernel builtin ww mutexes */ +#define WW_WAITDIE true /* Use wait-die, not wound-wait */ +#define WW_BATCHING /* Batch locks and unlocks */ +#define WWT_NUM_LOCKS 100000 /* Number of global locks */ +#define WWT_NUM_T_LOCKS 800 /* Number of locks per thread out of the global */ +#define WWT_NUM_THREADS 16 /* Number of locking threads to fire off */ +#undef WWT_SEQUENTIAL /* Fire off locking threads sequentially */ +#define WWT_CS_UDELAY 000 /* Command submission udelay */ +#define WWT_NUM_SUB 10000 /* Number of command submissions */ +#undef WWT_NO_SHARED /* No shared mutexes - No rollbacks */ + +#endif |