VirtualBox

Changeset 90678 in vbox


Ignore:
Timestamp:
Aug 13, 2021 10:31:14 AM (3 years ago)
Author:
vboxsync
Message:

bs3-locking-1: More tests. bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-locking-1.c

    r90635 r90678  
    4646} g_aLockingTests[] =
    4747{
    48 #if 1 /* no contention benchmark */
     48#if 1
     49# if 1 /* no contention benchmark */
    4950    {
    5051        "None 0us/inf/0k",
     
    5960        0 | VMMDEV_TESTING_LOCKED_HI_TYPE_RW,
    6061    },
     62# endif
    6163    {
    6264        "RW None Shr 0us/inf/0k",
     
    6567        0 | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED,
    6668    },
    67 #endif
    68 #if 1
     69# if 1
    6970    {
    7071        "Contention 500us/250us/64k",
     
    109110        1 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS
    110111    },
    111 #endif
     112# endif
     113# if 1
    112114    {
    113115        "RW Contention Exl/Exl 50us/25us/16k",
     
    116118        16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW
    117119    },
     120# endif
    118121    {
    119122        "RW Contention Shr/Exl 50us/25us/16k",
     
    122125        16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED
    123126    },
     127# if 1
    124128    {
    125129        "RW Contention Exl/Exl 50us/25us/16k poke",
     
    128132        16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_POKE
    129133    },
     134# endif
    130135    {
    131136        "RW Contention Shr/Exl 50us/25us/16k poke",
     
    135140        | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS
    136141    },
     142# if 1
    137143    {
    138144        "RW Contention Exl/Exl 50us/25us/16k poke void",
     
    141147        16 | VMMDEV_TESTING_LOCKED_HI_ENABLED | VMMDEV_TESTING_LOCKED_HI_TYPE_RW | VMMDEV_TESTING_LOCKED_HI_POKE
    142148    },
     149# endif
    143150    {
    144151        "RW Contention Shr/Exl 50us/25us/16k poke void",
     
    148155        | VMMDEV_TESTING_LOCKED_HI_POKE | VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS
    149156    },
    150 
     157#endif
    151158
    152159    {
     
    155162        50 | (UINT32_C(25) << VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT),
    156163        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
    157178    },
    158179    {
     
    163184           | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED
    164185    },
    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_RW
    170           | VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED | VMMDEV_TESTING_LOCKED_HI_EMT_SHARED
    171     },
    172 
    173186};
    174187
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette