Changeset 90678 in vbox
- Timestamp:
- Aug 13, 2021 10:31:14 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-locking-1.c
r90635 r90678 46 46 } g_aLockingTests[] = 47 47 { 48 #if 1 /* no contention benchmark */ 48 #if 1 49 # if 1 /* no contention benchmark */ 49 50 { 50 51 "None 0us/inf/0k", … … 59 60 0 | VMMDEV_TESTING_LOCKED_HI_TYPE_RW, 60 61 }, 62 # endif 61 63 { 62 64 "RW None Shr 0us/inf/0k", … … 65 67 0 | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED, 66 68 }, 67 #endif 68 #if 1 69 # if 1 69 70 { 70 71 "Contention 500us/250us/64k", … … 109 110 1 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS 110 111 }, 111 #endif 112 # endif 113 # if 1 112 114 { 113 115 "RW Contention Exl/Exl 50us/25us/16k", … … 116 118 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW 117 119 }, 120 # endif 118 121 { 119 122 "RW Contention Shr/Exl 50us/25us/16k", … … 122 125 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED 123 126 }, 127 # if 1 124 128 { 125 129 "RW Contention Exl/Exl 50us/25us/16k poke", … … 128 132 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_POKE 129 133 }, 134 # endif 130 135 { 131 136 "RW Contention Shr/Exl 50us/25us/16k poke", … … 135 140 | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS 136 141 }, 142 # if 1 137 143 { 138 144 "RW Contention Exl/Exl 50us/25us/16k poke void", … … 141 147 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_POKE 142 148 }, 149 # endif 143 150 { 144 151 "RW Contention Shr/Exl 50us/25us/16k poke void", … … 148 155 | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS 149 156 }, 150 157 #endif 151 158 152 159 { … … 155 162 50 | (UINT32_C(25) << VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT), 156 163 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED 164 }, 165 { 166 "RW Contention Exl/Shr poke 250us/25us/16k", 167 10000 + 4096, 168 250 | (UINT32_C(25) << VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT), 169 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED 170 | VMMDEV_TESTING_LOCKED_HI_POKE 171 }, 172 { 173 "RW Contention Exl/Shr poke void 250us/25us/16k", 174 10000 + 4096, 175 250 | (UINT32_C(25) << VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT), 176 16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED 177 | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS 157 178 }, 158 179 { … … 163 184 | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED 164 185 }, 165 {166 "RW Contention Shr/Shr 1us/1us/1k",167 32767,168 1 | (UINT32_C(1) << VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT),169 1 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW170 | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED171 },172 173 186 }; 174 187
Note:
See TracChangeset
for help on using the changeset viewer.