Module: check_mk
Branch: master
Commit: a92281874c45f5657d7ab2f31f6665b66032b8b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a92281874c45f5…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Tue Nov 6 16:42:56 2018 +0100
[CMK-1039] - perfreader into master
- PerfCounter.cc has optional possibility to find and run perf_reader.exe
- check_mk_agent is supplied in "perfread" parameter to test functionality
- service home folder is found from the service control routine
- sln, vcxproj* files and test_workbench project are Windows only(ignore those files if
you are not in Visual Studio 2017)
- typo MSVC_BUILD fixed
- ModuleControl.h added to find and run executables in windows environment
- perf_reader.exe, .gitignore and readme.txt placed into doc/treasures/windows
- readme.txt fixed, removed disabled test output
6862 FIX Fixed Handle Leak in Windows Agent
To prevent handle leaks in Windows Agent for certain versions of Windows OS
provided perf_reader.exe utility in ~/share/doc/check_mk/treasures/windows directory.
Short description can be found ~/share/doc/check_mk/treasures/windows/readme.txt
Change-Id: I14046e6dc9859d73a77d134f6eb20c3e8ffe9a19
---
.werks/6862 | 12 +
agents/windows/Environment.h | 6 +
agents/windows/ModuleControl.h | 261 ++++++++++
agents/windows/PerfCounter.cc | 102 +++-
agents/windows/WinApiInterface.h | 6 +-
agents/windows/check_mk_agent.cc | 75 ++-
agents/windows/check_mk_agent.sln | 31 ++
agents/windows/check_mk_agent.vcxproj | 537 +++++++++++++++++++++
agents/windows/check_mk_agent.vcxproj.filters | 306 ++++++++++++
agents/windows/tools/_raii.h | 70 +++
agents/windows/utils/perf_reader/pch.cpp | Bin 0 -> 430 bytes
agents/windows/utils/perf_reader/pch.h | Bin 0 -> 1582 bytes
agents/windows/utils/perf_reader/perf_reader.cpp | Bin 0 -> 11940 bytes
agents/windows/utils/perf_reader/perf_reader.sln | 31 ++
.../windows/utils/perf_reader/perf_reader.vcxproj | 187 +++++++
.../utils/perf_reader/perf_reader.vcxproj.filters | 33 ++
.../windows/utils/perf_reader/test_perf_reader.cmd | 14 +
agents/windows/utils/readme.md | 1 +
agents/windows/utils/test_workbench/pch.cpp | Bin 0 -> 430 bytes
agents/windows/utils/test_workbench/pch.h | Bin 0 -> 1262 bytes
agents/windows/utils/test_workbench/readme.md | 1 +
.../utils/test_workbench/test_workbench.cpp | Bin 0 -> 6580 bytes
.../utils/test_workbench/test_workbench.sln | 31 ++
.../utils/test_workbench/test_workbench.vcxproj | 199 ++++++++
.../test_workbench/test_workbench.vcxproj.filters | 36 ++
doc/treasures/windows/.gitignore | 1 +
doc/treasures/windows/perf_reader.exe | Bin 0 -> 112128 bytes
doc/treasures/windows/readme.txt | 13 +
28 files changed, 1930 insertions(+), 23 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a92281874c…