mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
Stefan Ginsberg <stefan__100__@hotmail.com>
- Remove KiRosPrintAddress export from ntoskrnl_i386.def, and CcRos* apis too. - Make win32k use KeRosDumpStackFrames instead of KiRosPrintAddress. svn path=/trunk/; revision=33646
This commit is contained in:
parent
1e5dd70adb
commit
8522c6766e
|
@ -3,9 +3,6 @@
|
||||||
; ReactOS Operating System
|
; ReactOS Operating System
|
||||||
;
|
;
|
||||||
EXPORTS
|
EXPORTS
|
||||||
CcRosInitializeFileCache@16
|
|
||||||
CcRosReleaseFileCache@4
|
|
||||||
CcRosTraceCacheMap@8
|
|
||||||
CcCanIWrite@16
|
CcCanIWrite@16
|
||||||
CcCopyRead@24
|
CcCopyRead@24
|
||||||
CcCopyWrite@20
|
CcCopyWrite@20
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifdef GDI_DEBUG
|
#ifdef GDI_DEBUG
|
||||||
|
|
||||||
BOOLEAN STDCALL KiRosPrintAddress(PVOID Address);
|
NTSYSAPI VOID NTAPI KeRosDumpStackFrames(PULONG, ULONG);
|
||||||
NTSYSAPI ULONG NTAPI RtlWalkFrameChain(OUT PVOID *Callers, IN ULONG Count, IN ULONG Flags);
|
NTSYSAPI ULONG NTAPI RtlWalkFrameChain(OUT PVOID *Callers, IN ULONG Count, IN ULONG Flags);
|
||||||
|
|
||||||
static int leak_reported = 0;
|
static int leak_reported = 0;
|
||||||
|
@ -79,14 +79,13 @@ done:
|
||||||
DbgPrint("Worst GDI Handle leak offenders (out of %i unique locations):\n", n);
|
DbgPrint("Worst GDI Handle leak offenders (out of %i unique locations):\n", n);
|
||||||
for (i = 0; i < n && h[i].count > 1; i++)
|
for (i = 0; i < n && h[i].count > 1; i++)
|
||||||
{
|
{
|
||||||
int j;
|
/* Print out the allocation count */
|
||||||
DbgPrint(" %i allocs: ", h[i].count);
|
DbgPrint(" %i allocs: ", h[i].count);
|
||||||
for (j = 0; j < GDI_STACK_LEVELS; j++)
|
|
||||||
{
|
/* Dump the frames */
|
||||||
ULONG Addr = GDIHandleAllocator[h[i].idx][j];
|
KeRosDumpStackFrames(GDIHandleAllocator[h[i].idx], GDI_STACK_LEVELS);
|
||||||
if (!KiRosPrintAddress((PVOID)Addr))
|
|
||||||
DbgPrint("<%X>", Addr);
|
/* Print new line for better readability */
|
||||||
}
|
|
||||||
DbgPrint("\n");
|
DbgPrint("\n");
|
||||||
}
|
}
|
||||||
if (i < n && h[i].count == 1)
|
if (i < n && h[i].count == 1)
|
||||||
|
|
|
@ -9,15 +9,9 @@
|
||||||
/** INCLUDES ******************************************************************/
|
/** INCLUDES ******************************************************************/
|
||||||
|
|
||||||
#include <w32k.h>
|
#include <w32k.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* FIXME include right header for KeRosDumpStackFrames */
|
|
||||||
VOID NTAPI KeRosDumpStackFrames(PULONG, ULONG);
|
|
||||||
|
|
||||||
//#define GDI_DEBUG
|
|
||||||
|
|
||||||
#define GDI_ENTRY_TO_INDEX(ht, e) \
|
#define GDI_ENTRY_TO_INDEX(ht, e) \
|
||||||
(((ULONG_PTR)(e) - (ULONG_PTR)&((ht)->Entries[0])) / sizeof(GDI_TABLE_ENTRY))
|
(((ULONG_PTR)(e) - (ULONG_PTR)&((ht)->Entries[0])) / sizeof(GDI_TABLE_ENTRY))
|
||||||
#define GDI_HANDLE_GET_ENTRY(HandleTable, h) \
|
#define GDI_HANDLE_GET_ENTRY(HandleTable, h) \
|
||||||
|
@ -83,7 +77,7 @@ OBJ_TYPE_INFO ObjTypeInfo[] =
|
||||||
static LARGE_INTEGER ShortDelay;
|
static LARGE_INTEGER ShortDelay;
|
||||||
|
|
||||||
/** DEBUGGING *****************************************************************/
|
/** DEBUGGING *****************************************************************/
|
||||||
|
//#define GDI_DEBUG
|
||||||
#include "gdidbg.c"
|
#include "gdidbg.c"
|
||||||
|
|
||||||
/** INTERNAL FUNCTIONS ********************************************************/
|
/** INTERNAL FUNCTIONS ********************************************************/
|
||||||
|
|
Loading…
Reference in a new issue