mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
[NDK] Add STACK_TRACE_DATABASE definition
This commit is contained in:
parent
510b079514
commit
01dc54056f
1 changed files with 38 additions and 1 deletions
|
@ -1736,11 +1736,48 @@ typedef struct _RTL_STACK_TRACE_ENTRY
|
||||||
PVOID BackTrace[32];
|
PVOID BackTrace[32];
|
||||||
} RTL_STACK_TRACE_ENTRY, *PRTL_STACK_TRACE_ENTRY;
|
} RTL_STACK_TRACE_ENTRY, *PRTL_STACK_TRACE_ENTRY;
|
||||||
|
|
||||||
|
|
||||||
typedef struct _STACK_TRACE_DATABASE
|
typedef struct _STACK_TRACE_DATABASE
|
||||||
{
|
{
|
||||||
RTL_CRITICAL_SECTION CriticalSection;
|
union
|
||||||
|
{
|
||||||
|
PVOID Lock;
|
||||||
|
|
||||||
|
/* Padding for ERESOURCE */
|
||||||
|
#if defined(_M_AMD64)
|
||||||
|
UCHAR Padding[0x68];
|
||||||
|
#else
|
||||||
|
UCHAR Padding[56];
|
||||||
|
#endif
|
||||||
|
} Lock;
|
||||||
|
|
||||||
|
BOOLEAN DumpInProgress;
|
||||||
|
|
||||||
|
PVOID CommitBase;
|
||||||
|
PVOID CurrentLowerCommitLimit;
|
||||||
|
PVOID CurrentUpperCommitLimit;
|
||||||
|
|
||||||
|
PCHAR NextFreeLowerMemory;
|
||||||
|
PCHAR NextFreeUpperMemory;
|
||||||
|
|
||||||
|
ULONG NumberOfEntriesAdded;
|
||||||
|
ULONG NumberOfAllocationFailures;
|
||||||
|
PRTL_STACK_TRACE_ENTRY* EntryIndexArray;
|
||||||
|
|
||||||
|
ULONG NumberOfBuckets;
|
||||||
|
PRTL_STACK_TRACE_ENTRY Buckets[ANYSIZE_ARRAY];
|
||||||
} STACK_TRACE_DATABASE, *PSTACK_TRACE_DATABASE;
|
} STACK_TRACE_DATABASE, *PSTACK_TRACE_DATABASE;
|
||||||
|
|
||||||
|
// Validate that our padding is big enough:
|
||||||
|
#ifndef NTOS_MODE_USER
|
||||||
|
#if defined(_M_AMD64)
|
||||||
|
C_ASSERT(sizeof(ERESOURCE) <= 0x68);
|
||||||
|
#else
|
||||||
|
C_ASSERT(sizeof(ERESOURCE) <= 56);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Trace Database
|
// Trace Database
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue