summaryrefslogtreecommitdiff
path: root/ww_mutex_test.h
blob: 8911ea77846cbc8f3c91ca4cbcc8040840bf6036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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