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.

61 lines
2.3 KiB

  1. #define TIMELOG_EditRecordEx 0
  2. #define TIMELOG_AddFileRecordFR 1
  3. #define TIMELOG_DeleteFileRecFromInode 2
  4. #define TIMELOG_FindFileRecord 3
  5. #define TIMELOG_UpdateFileRecordFR 4
  6. #define TIMELOG_AddPriQRecord 5
  7. #define TIMELOG_DeletePriQRecord 6
  8. #define TIMELOG_FindPriQRecordInternal 7
  9. #define TIMELOG_SetPriorityForInode 8
  10. #define TIMELOG_CreateShadowInternal 9
  11. #define TIMELOG_GetShadow 10
  12. #define TIMELOG_GetShadowInfo 11
  13. #define TIMELOG_SetShadowInfoInternal 12
  14. #define TIMELOG_ChangePriEntryStatusHSHADOW 13
  15. #define TIMELOG_MRxSmbCscCreateShadowFromPath 14
  16. #define TIMELOG_MRxSmbGetFileInfoFromServer 15
  17. #define TIMELOG_EditRecordEx_OpenFileLocal 16
  18. #define TIMELOG_EditRecordEx_Lookup 17
  19. #define TIMELOG_KeAttachProcess_R0Open 18
  20. #define TIMELOG_IoCreateFile_R0Open 19
  21. #define TIMELOG_KeDetachProcess_R0Open 20
  22. #define TIMELOG_KeAttachProcess_R0Read 21
  23. #define TIMELOG_R0ReadWrite 22
  24. #define TIMELOG_KeDetachProcess_R0Read 23
  25. #define TIMELOG_FindQRecordInsertionPoint_Addq 24
  26. #define TIMELOG_LinkQRecord_Addq 25
  27. #define TIMELOG_UnlinkQRecord_Addq 26
  28. #define TIMELOG_FindQRecordInsertionPoint_Addq_dir 27
  29. #define TIMELOG_EditRecordEx_ValidateHeader 28
  30. #define TIMELOG_EditRecordEx_Data 29
  31. #define TIMELOG_MAX 30
  32. #ifdef DEBUG
  33. #ifdef CSC_RECORDMANAGER_WINNT
  34. #define BEGIN_TIMING(indx) {LARGE_INTEGER llTimeBegin;\
  35. KeQuerySystemTime(&llTimeBegin);\
  36. rgllTimeArray[TIMELOG_##indx] -= llTimeBegin.QuadPart;}
  37. #define END_TIMING(indx) {LARGE_INTEGER llTimeEnd;\
  38. KeQuerySystemTime(&llTimeEnd);\
  39. rgllTimeArray[TIMELOG_##indx] += llTimeEnd.QuadPart;}
  40. extern LONGLONG rgllTimeArray[TIMELOG_MAX];
  41. #else
  42. #define BEGIN_TIMING(indx) ;
  43. #define END_TIMING(indx) ;
  44. #endif
  45. #else
  46. #define BEGIN_TIMING(indx) ;
  47. #define END_TIMING(indx) ;
  48. #endif