13#define TAG_POOLTEST 'tstP'
15#define BASE_POOL_TYPE_MASK 1
16#define QUOTA_POOL_MASK 8
24 return Header->PointerCount;
30 ULONG AllocSize,
i, AllocNumber;
34 for (
i=1;
i<10000;
i++)
59 for (
i=1;
i<10000;
i++)
96 for (
i=0;
i<AllocNumber;
i++)
103 for (
i=0;
i<AllocNumber;
i++)
118 AllocSize = 4096 + 0x10;
126#ifdef THIS_DOESNT_WORK
132 *TestPtr = 0xd33dbeef;
145 Ptr[2020] = 0xdeadb33f;
194 LONG InitialRefCount;
205 ok(
Memory !=
NULL,
"ExAllocatePoolWithQuotaTag returned NULL\n");
209 "Allocation %p is badly aligned\n",
234 ok(
Memory !=
NULL,
"ExAllocatePoolWithQuotaTag returned NULL\n");
238 "Allocation %p is badly aligned\n",
272 PVOID *BigAllocations;
273 const ULONG MaxAllocations = 1024 * 128;
274 ULONG NumAllocations;
279 MaxAllocations *
sizeof(*BigAllocations),
283 for (NumAllocations = 0; NumAllocations < MaxAllocations; NumAllocations++)
288 if (BigAllocations[NumAllocations] ==
NULL)
295 trace(
"Got %lu allocations for PoolType %d\n", NumAllocations,
PoolType);
298 for (; NumAllocations < MaxAllocations; NumAllocations--)
300 ASSERT(BigAllocations[NumAllocations] !=
NULL);
#define BASE_POOL_TYPE_MASK
static VOID PoolsTest(VOID)
static VOID PoolsCorruption(VOID)
static VOID TestBigPoolExpansion(VOID)
static VOID TestPoolTags(VOID)
static VOID TestPoolQuota(VOID)
static LONG GetRefCount(_In_ PVOID Object)
#define ok_eq_pointer(value, expected)
#define ok_eq_long(value, expected)
#define ok_eq_tag(value, expected)
#define ExAllocatePoolWithTag(hernya, size, tag)
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define EXCEPTION_EXECUTE_HANDLER
#define RtlFillMemory(Dest, Length, Fill)
#define KmtEndSeh(ExpectedStatus)
USHORT KmtGetPoolType(PVOID Memory)
ULONG KmtGetPoolTag(PVOID Memory)
#define ExFreePoolWithTag(_P, _T)
#define OBJECT_TO_OBJECT_HEADER(o)
#define STATUS_ACCESS_VIOLATION
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define RtlZeroMemory(Destination, Length)
#define STATUS_INSUFFICIENT_RESOURCES
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG _In_ _Out_ WDFMEMORY * Memory
#define ExAllocatePoolWithQuotaTag(a, b, c)
#define POOL_QUOTA_FAIL_INSTEAD_OF_RAISE
#define PsGetCurrentProcess