/* * 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