Author: fireball
Date: Tue Jul 3 21:59:35 2007
New Revision: 27369
URL:
http://svn.reactos.org/svn/reactos?rev=27369&view=rev
Log:
- Add debug prints.
Modified:
trunk/reactos/ntoskrnl/ke/timerobj.c
Modified: trunk/reactos/ntoskrnl/ke/timerobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/timerobj.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/timerobj.c (original)
+++ trunk/reactos/ntoskrnl/ke/timerobj.c Tue Jul 3 21:59:35 2007
@@ -32,6 +32,8 @@
LONGLONG DueTime;
LARGE_INTEGER InterruptTime, SystemTime, DifferenceTime;
PKTIMER_TABLE_ENTRY TimerEntry;
+
+ DPRINT("KiInsertTreeTimer(): Timer %p, Interval: %I64d\n", Timer,
Interval.QuadPart);
/* Convert to relative time if needed */
Timer->Header.Absolute = FALSE;
@@ -109,6 +111,8 @@
PLIST_ENTRY ListHead, NextEntry;
PKTIMER CurrentTimer;
+ DPRINT("KiInsertTimerTable(): Timer %p, Hand: %d\n", Timer, Hand);
+
/* Check if the period is zero */
if (!Timer->Period) Timer->Header.SignalState = FALSE;
@@ -156,6 +160,8 @@
PKDPC Dpc = Timer->Dpc;
ULONG Period = Timer->Period;
LARGE_INTEGER Interval, SystemTime;
+
+ DPRINT("KiSignalTimer(): Timer %p\n", Timer);
/* Set default values */
Timer->Header.Inserted = FALSE;
@@ -209,6 +215,8 @@
PKTIMER_TABLE_ENTRY TimerEntry;
BOOLEAN RequestInterrupt = FALSE;
+ DPRINT("KiCompleteTimer(): Timer %p, LockQueue: %p\n", Timer, LockQueue);
+
/* Remove it from the timer list */
if (RemoveEntryList(&Timer->TimerListEntry))
{
@@ -257,6 +265,8 @@
ASSERT_TIMER(Timer);
ASSERT(KeGetCurrentIrql() <= DISPATCH_LEVEL);
+ DPRINT("KeCancelTimer(): Timer %p\n", Timer);
+
/* Lock the Database and Raise IRQL */
OldIrql = KiAcquireDispatcherLock();
@@ -290,6 +300,9 @@
KeInitializeTimerEx(OUT PKTIMER Timer,
IN TIMER_TYPE Type)
{
+ DPRINT("KeInitializeTimerEx(): Timer %p, Type %s\n",
+ Timer, (Type == NotificationTimer) ? "NotificationTimer" :
"SynchronizationTimer");
+
/* Initialize the Dispatch Header */
KeInitializeDispatcherHeader(&Timer->Header,
TimerNotificationObject + Type,
@@ -344,6 +357,9 @@
ASSERT_TIMER(Timer);
ASSERT(KeGetCurrentIrql() <= DISPATCH_LEVEL);
+ DPRINT("KeSetTimerEx(): Timer %p, DueTime %I64d, Period %d, Dpc %p\n",
+ Timer, DueTime.QuadPart, Period, Dpc);
+
/* Lock the Database and Raise IRQL */
OldIrql = KiAcquireDispatcherLock();