Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

trace.h

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1998 Microsoft Corporation 00004 00005 Module Name: 00006 00007 trace.h 00008 00009 Abstract: 00010 00011 This module contains definitions of the trace functions 00012 00013 Author: 00014 Michael Tsang (MikeTs) 24-Sep-1998 00015 00016 Environment: 00017 00018 Kernel mode 00019 00020 00021 Revision History: 00022 00023 00024 --*/ 00025 00026 #ifndef _TRACE_H 00027 #define _TRACE_H 00028 00029 // 00030 // Macros 00031 // 00032 #ifdef TRACING 00033 #ifndef PROCNAME 00034 #define PROCNAME(s) static PSZ ProcName = s 00035 #endif 00036 #define ENTER(n,p) { \ 00037 if (IsTraceOn(n, ProcName)) \ 00038 { \ 00039 KdPrint(p); \ 00040 } \ 00041 ++IoepIndentLevel; \ 00042 } 00043 #define EXIT(n,p) { \ 00044 --IoepIndentLevel; \ 00045 if (IsTraceOn(n, ProcName)) \ 00046 { \ 00047 KdPrint(p); \ 00048 } \ 00049 } 00050 #else 00051 #define ENTER(n,p) 00052 #define EXIT(n,p) 00053 #endif 00054 00055 // 00056 // Exported data 00057 // 00058 extern int IoepIndentLevel; 00059 00060 // 00061 // Exported function prototypes 00062 // 00063 #ifdef TRACING 00064 BOOLEAN 00065 IsTraceOn( 00066 IN UCHAR n, 00067 IN PSZ ProcName 00068 ); 00069 #endif 00070 00071 #endif //ifndef _TRACE_H

Generated on Sat May 15 19:42:02 2004 for test by doxygen 1.3.7