#include "exp.h"
#include <stdarg.h>
#include <string.h>
#include <memprint.h>
Go to the source code of this file.
Classes | |
struct | _MEM_PRINT_MESSAGE_HEADER |
Defines | |
#define | MEM_PRINT_MAX_MESSAGE_SIZE 256 |
#define | MEM_PRINT_SUBBUFFER_SIZE (MemPrintBufferSize / MemPrintSubbufferCount) |
#define | GET_MEM_PRINT_SUBBUFFER(i) ((CSHORT)( (i) / MEM_PRINT_SUBBUFFER_SIZE )) |
Typedefs | |
typedef _MEM_PRINT_MESSAGE_HEADER | MEM_PRINT_MESSAGE_HEADER |
typedef _MEM_PRINT_MESSAGE_HEADER * | PMEM_PRINT_MESSAGE_HEADER |
Functions | |
VOID | MemPrintWriteCompleteApc (IN PVOID ApcContext, IN PIO_STATUS_BLOCK IoStatusBlock, IN ULONG Reserved) |
VOID | MemPrintWriteThread (IN PVOID Dummy) |
VOID | MemPrintInitialize (VOID) |
VOID | MemPrint (CHAR *Format,...) |
VOID | MemPrintFlush (VOID) |
Variables | |
CLONG | MemPrintBufferSize = MEM_PRINT_DEF_BUFFER_SIZE |
CLONG | MemPrintSubbufferCount = MEM_PRINT_DEF_SUBBUFFER_COUNT |
PCHAR | MemPrintBuffer |
ULONG | MemPrintFlags = MEM_PRINT_FLAG_CONSOLE |
KSPIN_LOCK | MemPrintSpinLock |
CHAR | MemPrintTempBuffer [MEM_PRINT_MAX_MESSAGE_SIZE] |
BOOLEAN | MemPrintInitialized = FALSE |
CLONG | MemPrintIndex = 0 |
CLONG | MemPrintCurrentSubbuffer = 0 |
BOOLEAN | MemPrintSubbufferWriting [MEM_PRINT_MAX_SUBBUFFER_COUNT] |
KEVENT | MemPrintSubbufferFullEvent [MEM_PRINT_MAX_SUBBUFFER_COUNT] |
|
Definition at line 62 of file memprint.c. Referenced by MemPrint(). |
|
Definition at line 53 of file memprint.c. Referenced by MemPrint(). |
|
Definition at line 60 of file memprint.c. Referenced by MemPrintFlush(), and MemPrintWriteThread(). |
|
|
|
Referenced by MemPrint(), and MemPrintFlush(). |
|
Definition at line 250 of file memprint.c. References ASSERT, CHAR, DbgPrint, FALSE, GET_MEM_PRINT_SUBBUFFER, KeAcquireSpinLock, KeReleaseSpinLock(), KeSetEvent(), MEM_PRINT_FLAG_CONSOLE, MEM_PRINT_FLAG_HEADER, MEM_PRINT_MAX_MESSAGE_SIZE, MemPrintBuffer, MemPrintBufferSize, MemPrintCurrentSubbuffer, MemPrintFlags, MemPrintIndex, MemPrintInitialized, MemPrintSpinLock, MemPrintSubbufferCount, MemPrintSubbufferFullEvent, MemPrintSubbufferWriting, PMEM_PRINT_MESSAGE_HEADER, _MEM_PRINT_MESSAGE_HEADER::Size, strlen(), TRUE, _MEM_PRINT_MESSAGE_HEADER::Type, and USHORT.
|
|
Definition at line 492 of file memprint.c. References DbgPrint, FALSE, KeAcquireSpinLock, KeDelayExecutionThread(), KeReleaseSpinLock(), KernelMode, KeSetEvent(), MEM_PRINT_SUBBUFFER_SIZE, MemPrintBuffer, MemPrintBufferSize, MemPrintCurrentSubbuffer, MemPrintIndex, MemPrintSpinLock, MemPrintSubbufferFullEvent, MemPrintSubbufferWriting, PMEM_PRINT_MESSAGE_HEADER, _MEM_PRINT_MESSAGE_HEADER::Size, TRUE, _MEM_PRINT_MESSAGE_HEADER::Type, and USHORT.
|
|
Definition at line 124 of file memprint.c. References DbgPrint, ExAllocatePoolWithTag, FALSE, KeInitializeEvent, KeInitializeSpinLock(), MEM_PRINT_MAX_SUBBUFFER_COUNT, MemPrintBuffer, MemPrintBufferSize, MemPrintInitialized, MemPrintSpinLock, MemPrintSubbufferCount, MemPrintSubbufferFullEvent, MemPrintSubbufferWriting, MemPrintWriteThread(), NonPagedPool, NT_SUCCESS, NTSTATUS(), NULL, PsCreateSystemThread(), and TRUE.
|
|
Definition at line 862 of file memprint.c. References DbgPrint, FALSE, KeAcquireSpinLock, KeReleaseSpinLock(), MemPrintSpinLock, MemPrintSubbufferWriting, and NT_SUCCESS. Referenced by MemPrintWriteThread().
|
|
Definition at line 598 of file memprint.c. References ASSERT, DbgPrint, Executive, FALSE, KeAcquireSpinLock, KeDelayExecutionThread(), KeReleaseSpinLock(), KernelMode, KeWaitForMultipleObjects(), L, MEM_PRINT_FLAG_FILE, MEM_PRINT_LOG_FILE_NAME, MEM_PRINT_MAX_SUBBUFFER_COUNT, MEM_PRINT_SUBBUFFER_SIZE, MemPrintBuffer, MemPrintBufferSize, MemPrintFlags, MemPrintSpinLock, MemPrintSubbufferCount, MemPrintSubbufferFullEvent, MemPrintSubbufferWriting, MemPrintWriteCompleteApc(), NT_SUCCESS, NtCreateFile(), NtSetInformationFile(), NtSetInformationThread(), NTSTATUS(), NtTerminateThread(), NtWriteFile(), NULL, RtlAnsiStringToUnicodeString(), RtlFreeUnicodeString(), RtlInitAnsiString(), and TRUE. Referenced by MemPrintInitialize().
|
|
Definition at line 80 of file memprint.c. Referenced by MemPrint(), MemPrintFlush(), MemPrintInitialize(), and MemPrintWriteThread(). |
|
Definition at line 78 of file memprint.c. Referenced by MemPrint(), MemPrintFlush(), MemPrintInitialize(), and MemPrintWriteThread(). |
|
Definition at line 102 of file memprint.c. Referenced by MemPrint(), and MemPrintFlush(). |
|
Definition at line 82 of file memprint.c. Referenced by MemPrint(), and MemPrintWriteThread(). |
|
Definition at line 94 of file memprint.c. Referenced by MemPrint(), and MemPrintFlush(). |
|
Definition at line 88 of file memprint.c. Referenced by MemPrint(), and MemPrintInitialize(). |
|
Definition at line 84 of file memprint.c. Referenced by MemPrint(), MemPrintFlush(), MemPrintInitialize(), MemPrintWriteCompleteApc(), and MemPrintWriteThread(). |
|
Definition at line 79 of file memprint.c. Referenced by MemPrint(), MemPrintInitialize(), and MemPrintWriteThread(). |
|
Definition at line 120 of file memprint.c. Referenced by MemPrint(), MemPrintFlush(), MemPrintInitialize(), and MemPrintWriteThread(). |
|
Definition at line 110 of file memprint.c. Referenced by MemPrint(), MemPrintFlush(), MemPrintInitialize(), MemPrintWriteCompleteApc(), and MemPrintWriteThread(). |
|
Definition at line 86 of file memprint.c. |