Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

  1. #define MIN_VERBOSE 1
  2. #define MID_VERBOSE 2
  3. #define MAX_VERBOSE 3
  4. #define STAGE_BEGIN 0
  5. #define STAGE_CONTINUE 1
  6. #define STAGE_END 2
  7. #define MAX_LOGFILE_SIZE 0x10000 // Default max size of a log file
  8. #define MIN_LOGFILE_SIZE 0x8000 // min size of a log file
  9. void EnterLogCrit(void);
  10. void LeaveLogCrit(void);
  11. VOID _cdecl DbgPrintLog(LPSTR lpFmt, ...);
  12. void LogVfnDelete(PIOREQ);
  13. void LogVfnDir(PIOREQ);
  14. void LogVfnFileAttrib(PIOREQ);
  15. void LogVfnFlush(PIOREQ);
  16. void LogVfnGetDiskInfo(PIOREQ);
  17. void LogVfnOpen(PIOREQ);
  18. void LogVfnRename(PIOREQ);
  19. void LogVfnSearch(PIOREQ);
  20. void LogVfnQuery(PIOREQ, USHORT);
  21. void LogVfnDisconnect(PIOREQ);
  22. void LogVfnUncPipereq(PIOREQ);
  23. void LogVfnIoctl16Drive (PIOREQ);
  24. void LogVfnGetDiskParms(PIOREQ);
  25. void LogVfnFindOpen(PIOREQ);
  26. void LogHfnFindNext(PIOREQ);
  27. void LogVfnDasdIO(PIOREQ);
  28. void LogHfnFindClose(PIOREQ);
  29. void LogHfnRead (PIOREQ);
  30. void LogHfnWrite (PIOREQ);
  31. void LogHfnClose (PIOREQ, int);
  32. void LogHfnSeek (PIOREQ);
  33. void LogHfnCommit (PIOREQ);
  34. void LogHfnFileLocks (PIOREQ);
  35. void LogHfnFileTimes (PIOREQ);
  36. void LogHfnPipeRequest(PIOREQ);
  37. void LogHfnHandleInfo(PIOREQ);
  38. void LogHfnEnumHandle(PIOREQ);
  39. void LogTiming(int verbosity, int stage);
  40. #ifdef DEBUG
  41. extern ULONG cntVfnDelete, cntVfnCreateDir, cntVfnDeleteDir, cntVfnCheckDir, cntVfnGetAttrib;
  42. extern ULONG cntVfnSetAttrib, cntVfnFlush, cntVfnGetDiskInfo, cntVfnOpen;
  43. extern ULONG cntVfnRename, cntVfnSearchFirst, cntVfnSearchNext;
  44. extern ULONG cntVfnQuery, cntVfnDisconnect, cntVfnUncPipereq, cntVfnIoctl16Drive;
  45. extern ULONG cntVfnGetDisParms, cntVfnFindOpen, cntVfnDasdIo;
  46. extern ULONG cntHfnFindNext, cntHfnFindClose;
  47. extern ULONG cntHfnRead, cntHfnWrite, cntHfnSeek, cntHfnClose, cntHfnCommit;
  48. extern ULONG cntHfnSetFileLocks, cntHfnRelFileLocks, cntHfnGetFileTimes, cntHfnSetFileTimes;
  49. extern ULONG cntHfnPipeRequest, cntHfnHandleInfo, cntHfnEnumHandle;
  50. extern ULONG cntReadHits, cbReadLow, cbReadHigh, cbWriteLow, cbWriteHigh;
  51. #endif //DEBUG