1 | /* $Id: bs3-cmn-TestData.c 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * BS3Kit - Test Data.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2007-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * The contents of this file may alternatively be used under the terms
|
---|
26 | * of the Common Development and Distribution License Version 1.0
|
---|
27 | * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
28 | * in the VirtualBox distribution, in which case the provisions of the
|
---|
29 | * CDDL are applicable instead of those of the GPL.
|
---|
30 | *
|
---|
31 | * You may elect to license modified versions of this file under the
|
---|
32 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
33 | *
|
---|
34 | * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
35 | */
|
---|
36 |
|
---|
37 |
|
---|
38 | /*********************************************************************************************************************************
|
---|
39 | * Header Files *
|
---|
40 | *********************************************************************************************************************************/
|
---|
41 | #include "bs3kit-template-header.h"
|
---|
42 | #include "bs3-cmn-test.h"
|
---|
43 |
|
---|
44 |
|
---|
45 | /*********************************************************************************************************************************
|
---|
46 | * Global Variables *
|
---|
47 | *********************************************************************************************************************************/
|
---|
48 | #if ARCH_BITS == 16
|
---|
49 |
|
---|
50 | /** Indicates whether the VMMDev is operational. */
|
---|
51 | bool g_fbBs3VMMDevTesting = true;
|
---|
52 |
|
---|
53 | /** Alignment padding. */
|
---|
54 | bool g_fTestDataPadding0 = true;
|
---|
55 |
|
---|
56 | /** The number of tests that have failed. */
|
---|
57 | uint16_t g_cusBs3TestErrors = 0;
|
---|
58 |
|
---|
59 | /** The start error count of the current subtest. */
|
---|
60 | uint16_t g_cusBs3SubTestAtErrors = 0;
|
---|
61 |
|
---|
62 | /** Whether we've reported the sub-test result or not. */
|
---|
63 | bool g_fbBs3SubTestReported = true;
|
---|
64 | /** Whether the sub-test has been skipped or not. */
|
---|
65 | bool g_fbBs3SubTestSkipped = false;
|
---|
66 |
|
---|
67 | /** The number of sub tests. */
|
---|
68 | uint16_t g_cusBs3SubTests = 0;
|
---|
69 |
|
---|
70 | /** The number of sub tests that failed. */
|
---|
71 | uint16_t g_cusBs3SubTestsFailed = 0;
|
---|
72 |
|
---|
73 | /** VMMDEV_TESTING_UNIT_XXX -> string */
|
---|
74 | char const g_aszBs3TestUnitNames[][12] =
|
---|
75 | {
|
---|
76 | "inv",
|
---|
77 | "%",
|
---|
78 | "bytes",
|
---|
79 | "bytes/s",
|
---|
80 | "KB",
|
---|
81 | "KB/s",
|
---|
82 | "MB",
|
---|
83 | "MB/s",
|
---|
84 | "packets",
|
---|
85 | "packets/s",
|
---|
86 | "frames",
|
---|
87 | "frames/",
|
---|
88 | "occ",
|
---|
89 | "occ/s",
|
---|
90 | "rndtrp",
|
---|
91 | "calls",
|
---|
92 | "calls/s",
|
---|
93 | "s",
|
---|
94 | "ms",
|
---|
95 | "ns",
|
---|
96 | "ns/call",
|
---|
97 | "ns/frame",
|
---|
98 | "ns/occ",
|
---|
99 | "ns/packet",
|
---|
100 | "ns/rndtrp",
|
---|
101 | "ins",
|
---|
102 | "ins/s",
|
---|
103 | "", /* none */
|
---|
104 | "pp1k",
|
---|
105 | "pp10k",
|
---|
106 | "ppm",
|
---|
107 | "ppb",
|
---|
108 | "ticks",
|
---|
109 | "ticks/call",
|
---|
110 | "ticks/occ",
|
---|
111 | "pages",
|
---|
112 | "pages/s",
|
---|
113 | "ticks/page",
|
---|
114 | "ns/page",
|
---|
115 | "ps",
|
---|
116 | "ps/call",
|
---|
117 | "ps/frame",
|
---|
118 | "ps/occ",
|
---|
119 | "ps/packet",
|
---|
120 | "ps/rndtrp",
|
---|
121 | "ps/page",
|
---|
122 | };
|
---|
123 |
|
---|
124 |
|
---|
125 | /** The subtest name. */
|
---|
126 | char g_szBs3SubTest[64];
|
---|
127 |
|
---|
128 | /** The current test step. */
|
---|
129 | uint16_t g_usBs3TestStep;
|
---|
130 |
|
---|
131 | #endif /* ARCH_BITS == 16 */
|
---|
132 |
|
---|
133 | /** The test name. */
|
---|
134 | const char BS3_FAR *BS3_CMN_NM(g_pszBs3Test) = NULL;
|
---|
135 |
|
---|