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:
Aleksey Bragin 2008-05-22 19:31:49 +00:00
parent 1e5dd70adb
commit 8522c6766e
3 changed files with 8 additions and 18 deletions

View file

@ -3,9 +3,6 @@
; ReactOS Operating System
;
EXPORTS
CcRosInitializeFileCache@16
CcRosReleaseFileCache@4
CcRosTraceCacheMap@8
CcCanIWrite@16
CcCopyRead@24
CcCopyWrite@20

View file

@ -1,6 +1,6 @@
#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);
static int leak_reported = 0;
@ -79,14 +79,13 @@ done:
DbgPrint("Worst GDI Handle leak offenders (out of %i unique locations):\n", n);
for (i = 0; i < n && h[i].count > 1; i++)
{
int j;
/* Print out the allocation count */
DbgPrint(" %i allocs: ", h[i].count);
for (j = 0; j < GDI_STACK_LEVELS; j++)
{
ULONG Addr = GDIHandleAllocator[h[i].idx][j];
if (!KiRosPrintAddress((PVOID)Addr))
DbgPrint("<%X>", Addr);
}
/* Dump the frames */
KeRosDumpStackFrames(GDIHandleAllocator[h[i].idx], GDI_STACK_LEVELS);
/* Print new line for better readability */
DbgPrint("\n");
}
if (i < n && h[i].count == 1)

View file

@ -9,15 +9,9 @@
/** INCLUDES ******************************************************************/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* FIXME include right header for KeRosDumpStackFrames */
VOID NTAPI KeRosDumpStackFrames(PULONG, ULONG);
//#define GDI_DEBUG
#define GDI_ENTRY_TO_INDEX(ht, e) \
(((ULONG_PTR)(e) - (ULONG_PTR)&((ht)->Entries[0])) / sizeof(GDI_TABLE_ENTRY))
#define GDI_HANDLE_GET_ENTRY(HandleTable, h) \
@ -83,7 +77,7 @@ OBJ_TYPE_INFO ObjTypeInfo[] =
static LARGE_INTEGER ShortDelay;
/** DEBUGGING *****************************************************************/
//#define GDI_DEBUG
#include "gdidbg.c"
/** INTERNAL FUNCTIONS ********************************************************/