Source code of Windows XP (NT5)
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.

28 lines
1.3 KiB

  1. # The README File for the PERFMON hook up code to the NTFRS.
  2. To add/delete a counter to either REPLICASET or REPLICACONN Object you
  3. need to do the following :
  4. 1. Add/Delete it to/from the counter definition structure (ReplicaSetCounters or
  5. ReplicaConnCounters) in the perrepsr.h file in the ntrepl/inc directory.
  6. 2. Add/Delete (in the format specified) the new/old counter line to/from the
  7. NTFRSREP.INT or/and NTFRSCON.int files. The format is,
  8. StructName : STFieldName : CounterName : CounterType : HelpString
  9. 3. Build the generated files using genfiles.cmd
  10. *NOTE* Since perl is not supported in the build (licensing issues with tool distribution)
  11. The developer must regenerate the result files and check them in to the SLM tree.
  12. The genfiles.cmd script above does this by checking the generated files out and then runs
  13. nmake to generate new files. This is not run automatically as part of the build.
  14. 4. Add code to the service that sets or increments the counter value added to the
  15. ReplicaSetCounters or ReplicaConnCounters struct above. Use one of the following
  16. macros (or define a new one if necc.) PM_INC_CTR_REPSET, PM_INC_CTR_CXTION,
  17. PM_SET_CTR_REPSET, PM_SET_CTR_CXTION, PM_INC_CTR_SERVICE, PM_SET_CTR_SERVICE.
  18. 5. Check both the *.int file(s) and the generated files from step 3 back into the slm tree.
  19. 6. Rebuild service.