ReactOS 0.4.16-dev-250-g3ecd236
|
#include <kmt_test.h>
Go to the source code of this file.
Classes | |
struct | _TEST_CONTEXT |
Macros | |
#define | ROUND_DOWN(n, align) (((ULONG_PTR)n) & ~((align) - 1l)) |
#define | DEFAULT_ALLOC_SIZE 200 |
#define | IGNORE -1 |
#define | PAGE_NOPROT 0x0 |
#define | ALLOC_MEMORY_WITH_FREE(ProcessHandle, BaseAddress, ZeroBits, RegionSize, AllocationType, Protect, RetStatus, FreeStatus) |
Typedefs | |
typedef struct _TEST_CONTEXT | TEST_CONTEXT |
typedef struct _TEST_CONTEXT * | PTEST_CONTEXT |
Functions | |
VOID | Test_ZwAllocateVirtualMemory (VOID) |
static BOOLEAN | CheckBuffer (PVOID Buffer, SIZE_T Size, UCHAR Value) |
static SIZE_T | CheckBufferRead (CONST VOID *Source, CONST VOID *Destination, SIZE_T Length, NTSTATUS ExpectedStatus) |
static VOID | CheckBufferReadWrite (PVOID Destination, CONST VOID *Source, SIZE_T Length, NTSTATUS ExpectedStatus) |
static VOID | SimpleErrorChecks (VOID) |
static NTSTATUS | SimpleAllocation (VOID) |
static VOID | CustomBaseAllocation (VOID) |
static NTSTATUS | StressTesting (ULONG AllocationType) |
static VOID NTAPI | SystemProcessTestWorker (PVOID StartContext) |
static VOID | KmtInitTestContext (PTEST_CONTEXT Ctx, SHORT ThreadId, ULONG RegionSize, ULONG AllocationType, ULONG Protect) |
static VOID | SystemProcessTest (VOID) |
START_TEST (ZwAllocateVirtualMemory) | |
Variables | |
const char | TestString [] = "TheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedThe" |
const ULONG | TestStringSize = sizeof(TestString) |
#define ALLOC_MEMORY_WITH_FREE | ( | ProcessHandle, | |
BaseAddress, | |||
ZeroBits, | |||
RegionSize, | |||
AllocationType, | |||
Protect, | |||
RetStatus, | |||
FreeStatus | |||
) |
Definition at line 32 of file ZwAllocateVirtualMemory.c.
#define DEFAULT_ALLOC_SIZE 200 |
Definition at line 11 of file ZwAllocateVirtualMemory.c.
#define IGNORE -1 |
Definition at line 12 of file ZwAllocateVirtualMemory.c.
#define PAGE_NOPROT 0x0 |
Definition at line 13 of file ZwAllocateVirtualMemory.c.
Definition at line 10 of file ZwAllocateVirtualMemory.c.
typedef struct _TEST_CONTEXT * PTEST_CONTEXT |
typedef struct _TEST_CONTEXT TEST_CONTEXT |
Definition at line 52 of file ZwAllocateVirtualMemory.c.
Referenced by SimpleAllocation().
|
static |
Definition at line 70 of file ZwAllocateVirtualMemory.c.
Referenced by CheckBufferReadWrite(), and SimpleAllocation().
|
static |
Definition at line 83 of file ZwAllocateVirtualMemory.c.
Referenced by SimpleAllocation(), StressTesting(), and SystemProcessTestWorker().
Definition at line 268 of file ZwAllocateVirtualMemory.c.
Referenced by START_TEST().
|
static |
Definition at line 401 of file ZwAllocateVirtualMemory.c.
Referenced by SystemProcessTest().
Definition at line 170 of file ZwAllocateVirtualMemory.c.
Referenced by START_TEST().
Definition at line 99 of file ZwAllocateVirtualMemory.c.
Referenced by START_TEST().
START_TEST | ( | ZwAllocateVirtualMemory | ) |
Definition at line 494 of file ZwAllocateVirtualMemory.c.
Definition at line 294 of file ZwAllocateVirtualMemory.c.
Referenced by START_TEST().
Definition at line 414 of file ZwAllocateVirtualMemory.c.
Referenced by START_TEST().
Definition at line 346 of file ZwAllocateVirtualMemory.c.
Referenced by SystemProcessTest().
const char TestString[] = "TheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedThe" |
Definition at line 16 of file ZwAllocateVirtualMemory.c.
const ULONG TestStringSize = sizeof(TestString) |
Definition at line 17 of file ZwAllocateVirtualMemory.c.
Referenced by AdvancedErrorChecks(), BasicBehaviorChecks(), BehaviorChecks(), FileSectionViewPermissionCheck(), KmtInitTestFiles(), PageFileBehaviorChecks(), SimpleAllocation(), SimpleErrorChecks(), StressTesting(), SystemProcessTestWorker(), and SystemProcessWorker().