1 | /* $Id: bs3-cmn-TestData.c 106061 2024-09-16 14:03:52Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * BS3Kit - Test Data.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2007-2024 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 | /** The test name. */
|
---|
49 | const char BS3_FAR *BS3_CMN_NM(g_pszBs3Test) = NULL;
|
---|
50 |
|
---|
51 | #if ARCH_BITS == 16
|
---|
52 |
|
---|
53 | /** Indicates whether the VMMDev is operational. */
|
---|
54 | bool g_fbBs3VMMDevTesting = true;
|
---|
55 |
|
---|
56 | /** Alignment padding. */
|
---|
57 | bool g_fTestDataPadding0 = true;
|
---|
58 |
|
---|
59 | /** The number of tests that have failed. */
|
---|
60 | uint16_t g_cusBs3TestErrors = 0;
|
---|
61 |
|
---|
62 | /** The start error count of the current sub-sub-test. */
|
---|
63 | uint16_t g_cusBs3SubSubTestAtErrors = 0;
|
---|
64 | /** Whether we've reported the sub-sub-test result or not. */
|
---|
65 | bool g_fbBs3SubSubTestReported = true;
|
---|
66 | /** Whether the sub-sub-test has been skipped or not. */
|
---|
67 | bool g_fbBs3SubSubTestSkipped = false;
|
---|
68 | /** The number of sub-sub-tests. */
|
---|
69 | uint16_t g_cusBs3SubSubTests = 0;
|
---|
70 | /** The number of sub-sub-tests that failed. */
|
---|
71 | uint16_t g_cusBs3SubSubTestsFailed = 0;
|
---|
72 |
|
---|
73 | /** The start error count of the current subtest. */
|
---|
74 | uint16_t g_cusBs3SubTestAtErrors = 0;
|
---|
75 | /** Whether we've reported the sub-test result or not. */
|
---|
76 | bool g_fbBs3SubTestReported = true;
|
---|
77 | /** Whether the sub-test has been skipped or not. */
|
---|
78 | bool g_fbBs3SubTestSkipped = false;
|
---|
79 | /** The number of sub-tests. */
|
---|
80 | uint16_t g_cusBs3SubTests = 0;
|
---|
81 | /** The number of sub-tests that failed. */
|
---|
82 | uint16_t g_cusBs3SubTestsFailed = 0;
|
---|
83 |
|
---|
84 | /** The current test step. */
|
---|
85 | uint16_t g_usBs3TestStep;
|
---|
86 |
|
---|
87 | /** The host configurable BS3_THRESHOLD_NATIVE_RECOMPILER value. */
|
---|
88 | uint16_t g_cBs3ThresholdNativeRecompiler = BS3_THRESHOLD_NATIVE_RECOMPILER;
|
---|
89 |
|
---|
90 |
|
---|
91 | /** VMMDEV_TESTING_UNIT_XXX -> string */
|
---|
92 | char const g_aszBs3TestUnitNames[][12] =
|
---|
93 | {
|
---|
94 | "inv",
|
---|
95 | "%",
|
---|
96 | "bytes",
|
---|
97 | "bytes/s",
|
---|
98 | "KB",
|
---|
99 | "KB/s",
|
---|
100 | "MB",
|
---|
101 | "MB/s",
|
---|
102 | "packets",
|
---|
103 | "packets/s",
|
---|
104 | "frames",
|
---|
105 | "frames/",
|
---|
106 | "occ",
|
---|
107 | "occ/s",
|
---|
108 | "rndtrp",
|
---|
109 | "calls",
|
---|
110 | "calls/s",
|
---|
111 | "s",
|
---|
112 | "ms",
|
---|
113 | "ns",
|
---|
114 | "ns/call",
|
---|
115 | "ns/frame",
|
---|
116 | "ns/occ",
|
---|
117 | "ns/packet",
|
---|
118 | "ns/rndtrp",
|
---|
119 | "ins",
|
---|
120 | "ins/s",
|
---|
121 | "", /* none */
|
---|
122 | "pp1k",
|
---|
123 | "pp10k",
|
---|
124 | "ppm",
|
---|
125 | "ppb",
|
---|
126 | "ticks",
|
---|
127 | "ticks/call",
|
---|
128 | "ticks/occ",
|
---|
129 | "pages",
|
---|
130 | "pages/s",
|
---|
131 | "ticks/page",
|
---|
132 | "ns/page",
|
---|
133 | "ps",
|
---|
134 | "ps/call",
|
---|
135 | "ps/frame",
|
---|
136 | "ps/occ",
|
---|
137 | "ps/packet",
|
---|
138 | "ps/rndtrp",
|
---|
139 | "ps/page",
|
---|
140 | };
|
---|
141 |
|
---|
142 |
|
---|
143 | /** The subtest name. */
|
---|
144 | char g_szBs3SubTest[64];
|
---|
145 | /** The subsubtest name. */
|
---|
146 | char g_szBs3SubSubTest[64];
|
---|
147 |
|
---|
148 | #endif /* ARCH_BITS == 16 */
|
---|
149 |
|
---|