Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d6dfe197
Commit
d6dfe197
authored
May 16, 2017
by
Alex Henrie
Committed by
Alexandre Julliard
May 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Dump entire VM_COUNTERS structure.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d37a49f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
info.c
dlls/ntdll/tests/info.c
+18
-2
No files found.
dlls/ntdll/tests/info.c
View file @
d6dfe197
...
...
@@ -1046,6 +1046,22 @@ static void test_query_process_basic(void)
ok
(
pbi
.
UniqueProcessId
>
0
,
"Expected a ProcessID > 0, got 0
\n
"
);
}
static
void
dump_vm_counters
(
const
char
*
header
,
const
VM_COUNTERS
*
pvi
)
{
trace
(
"%s:
\n
"
,
header
);
trace
(
"PeakVirtualSize : %lu
\n
"
,
pvi
->
PeakVirtualSize
);
trace
(
"VirtualSize : %lu
\n
"
,
pvi
->
VirtualSize
);
trace
(
"PageFaultCount : %u
\n
"
,
pvi
->
PageFaultCount
);
trace
(
"PeakWorkingSetSize : %lu
\n
"
,
pvi
->
PeakWorkingSetSize
);
trace
(
"WorkingSetSize : %lu
\n
"
,
pvi
->
WorkingSetSize
);
trace
(
"QuotaPeakPagedPoolUsage : %lu
\n
"
,
pvi
->
QuotaPeakPagedPoolUsage
);
trace
(
"QuotaPagedPoolUsage : %lu
\n
"
,
pvi
->
QuotaPagedPoolUsage
);
trace
(
"QuotaPeakNonPagePoolUsage : %lu
\n
"
,
pvi
->
QuotaPeakNonPagedPoolUsage
);
trace
(
"QuotaNonPagePoolUsage : %lu
\n
"
,
pvi
->
QuotaNonPagedPoolUsage
);
trace
(
"PagefileUsage : %lu
\n
"
,
pvi
->
PagefileUsage
);
trace
(
"PeakPagefileUsage : %lu
\n
"
,
pvi
->
PeakPagefileUsage
);
}
static
void
test_query_process_vm
(
void
)
{
NTSTATUS
status
;
...
...
@@ -1078,7 +1094,7 @@ static void test_query_process_vm(void)
ok
(
ReturnLength
==
old_size
||
ReturnLength
==
sizeof
(
pvi
),
"Inconsistent length %d
\n
"
,
ReturnLength
);
/* Check if we have some return values */
trace
(
"WorkingSetSize : %ld
\n
"
,
pvi
.
WorkingSetSize
);
dump_vm_counters
(
"VM counters for GetCurrentProcess"
,
&
pvi
);
ok
(
pvi
.
WorkingSetSize
>
0
,
"Expected a WorkingSetSize > 0
\n
"
);
process
=
OpenProcess
(
PROCESS_VM_READ
,
FALSE
,
GetCurrentProcessId
());
...
...
@@ -1097,7 +1113,7 @@ static void test_query_process_vm(void)
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
/* Check if we have some return values */
trace
(
"WorkingSetSize : %ld
\n
"
,
pvi
.
WorkingSetSize
);
dump_vm_counters
(
"VM counters for GetCurrentProcessId"
,
&
pvi
);
ok
(
pvi
.
WorkingSetSize
>
0
,
"Expected a WorkingSetSize > 0
\n
"
);
CloseHandle
(
process
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment