Process Hacker
dbgcon.c File Reference
#include <phapp.h>
#include <phintrnl.h>
#include <symprv.h>
#include <refp.h>

Go to the source code of this file.

Macros

#define RW_ITERS   10000
 
#define RW_READ_ITERS   100
 
#define RW_WRITE_ITERS   10
 
#define RW_READ_SPIN_ITERS   60
 
#define RW_WRITE_SPIN_ITERS   200
 
#define RW_PROCESSORS   4
 

Typedefs

typedef struct _STRING_TABLE_ENTRY STRING_TABLE_ENTRY
 
typedef struct
_STRING_TABLE_ENTRY * 
PSTRING_TABLE_ENTRY
 
typedef struct _STOPWATCH STOPWATCH
 
typedef struct _STOPWATCH * PSTOPWATCH
 
typedef VOID(FASTCALLPPHF_RW_LOCK_FUNCTION )(_In_ PVOID Parameter)
 
typedef struct _RW_TEST_CONTEXT RW_TEST_CONTEXT
 
typedef struct _RW_TEST_CONTEXT * PRW_TEST_CONTEXT
 

Functions

BOOL ConsoleHandlerRoutine (_In_ DWORD dwCtrlType)
 
VOID PhpPrintHashtableStatistics (_In_ PPH_HASHTABLE Hashtable)
 
NTSTATUS PhpDebugConsoleThreadStart (_In_ PVOID Parameter)
 
VOID PhShowDebugConsole (VOID)
 
VOID PhCloseDebugConsole (VOID)
 
VOID FASTCALL PhfAcquireCriticalSection (_In_ PRTL_CRITICAL_SECTION CriticalSection)
 
VOID FASTCALL PhfReleaseCriticalSection (_In_ PRTL_CRITICAL_SECTION CriticalSection)
 
VOID FASTCALL PhfReleaseQueuedLockExclusiveUsingInline (_In_ PPH_QUEUED_LOCK QueuedLock)
 

Variables

PH_FREE_LIST PhObjectSmallFreeList
 

Macro Definition Documentation

#define RW_ITERS   10000
#define RW_PROCESSORS   4
#define RW_READ_ITERS   100
#define RW_READ_SPIN_ITERS   60
#define RW_WRITE_ITERS   10
#define RW_WRITE_SPIN_ITERS   200

Typedef Documentation

typedef VOID(FASTCALL * PPHF_RW_LOCK_FUNCTION)(_In_ PVOID Parameter)

Definition at line 488 of file dbgcon.c.

typedef struct _RW_TEST_CONTEXT * PRW_TEST_CONTEXT
typedef struct _STOPWATCH * PSTOPWATCH
typedef struct _STRING_TABLE_ENTRY * PSTRING_TABLE_ENTRY
typedef struct _RW_TEST_CONTEXT RW_TEST_CONTEXT
typedef struct _STOPWATCH STOPWATCH
typedef struct _STRING_TABLE_ENTRY STRING_TABLE_ENTRY

Function Documentation

static BOOL ConsoleHandlerRoutine ( _In_ DWORD  dwCtrlType)

Definition at line 117 of file dbgcon.c.

VOID PhCloseDebugConsole ( VOID  )

Definition at line 106 of file dbgcon.c.

VOID FASTCALL PhfAcquireCriticalSection ( _In_ PRTL_CRITICAL_SECTION  CriticalSection)

Definition at line 635 of file dbgcon.c.

VOID FASTCALL PhfReleaseCriticalSection ( _In_ PRTL_CRITICAL_SECTION  CriticalSection)

Definition at line 642 of file dbgcon.c.

VOID FASTCALL PhfReleaseQueuedLockExclusiveUsingInline ( _In_ PPH_QUEUED_LOCK  QueuedLock)

Definition at line 649 of file dbgcon.c.

NTSTATUS PhpDebugConsoleThreadStart ( _In_ PVOID  Parameter)

Definition at line 656 of file dbgcon.c.

static VOID PhpPrintHashtableStatistics ( _In_ PPH_HASHTABLE  Hashtable)

Definition at line 266 of file dbgcon.c.

VOID PhShowDebugConsole ( VOID  )

Definition at line 68 of file dbgcon.c.

Variable Documentation

PH_FREE_LIST PhObjectSmallFreeList

Definition at line 30 of file ref.c.