Changeset 452 in vbox for trunk/src/VBox
- Timestamp:
- Jan 30, 2007 11:35:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/CSAM.cpp
r347 r452 36 36 #include <VBox/selm.h> 37 37 #include <VBox/trpm.h> 38 #include <VBox/cfgm.h> 38 39 #include <VBox/param.h> 39 40 #include <iprt/avl.h> … … 174 175 STAM_REG(pVM, &pVM->csam.s.StatCheckGates, STAMTYPE_PROFILE, "/PROF/CSAM/CheckGates", STAMUNIT_TICKS_PER_CALL, "CSAMR3CheckGates overhead."); 175 176 176 177 /* 178 * Check CFGM option and enable/disable CSAM. 179 */ 180 bool fEnabled; 181 rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "CSAMEnabled", &fEnabled); 182 if (VBOX_FAILURE(rc)) 177 183 #ifdef CSAM_ENABLE 178 CSAMEnableScanning(pVM); 184 fEnabled = true; 185 #else 186 fEnabled = false; 179 187 #endif 188 if (fEnabled) 189 CSAMEnableScanning(pVM); 180 190 181 191 #ifdef VBOX_WITH_DEBUGGER
Note:
See TracChangeset
for help on using the changeset viewer.