[PATCH] ntoskrnl: Add the ticks debug channel

Detlef Riekenberg wine.dev at web.de
Sun Nov 11 13:24:45 CST 2007


---
 dlls/ntoskrnl.exe/ntoskrnl.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 2aac409..10207fd 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -38,7 +38,7 @@ #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
 WINE_DECLARE_DEBUG_CHANNEL(relay);
-
+WINE_DECLARE_DEBUG_CHANNEL(ticks);
 
 KSYSTEM_TIME KeTickCount;
 
@@ -163,14 +163,22 @@ static NTSTATUS process_ioctl( DEVICE_OB
     KeQueryTickCount( &count );  /* update the global KeTickCount */
 
     if (TRACE_ON(relay))
+    {
+        if (TRACE_ON(ticks)) DPRINTF( "(%05u)", NtGetTickCount() );
+
         DPRINTF( "%04x:Call driver dispatch %p (device=%p,irp=%p)\n",
                  GetCurrentThreadId(), dispatch, device, &irp );
+    }
 
     status = dispatch( device, &irp );
 
     if (TRACE_ON(relay))
+    {
+        if (TRACE_ON(ticks)) DPRINTF( "(%05u)", NtGetTickCount() );
+
         DPRINTF( "%04x:Ret  driver dispatch %p (device=%p,irp=%p) retval=%08x\n",
                  GetCurrentThreadId(), dispatch, device, &irp, status );
+    }
 
     *out_size = irp.IoStatus.u.Status ? 0 : irp.IoStatus.Information;
     return irp.IoStatus.u.Status;
-- 
1.4.1


--=-SR9t8DAdLYk3x2J0EewI--




More information about the wine-patches mailing list