* @brief Implementation of event_clear function * * @param EventId * * @return VOID */
| 1055 | * @return VOID |
| 1056 | */ |
| 1057 | VOID |
| 1058 | ScriptEngineFunctionEventClear(UINT64 EventId) |
| 1059 | { |
| 1060 | #ifdef SCRIPT_ENGINE_USER_MODE |
| 1061 | ShowMessages("err, disabling events is not possible in user-mode\n"); |
| 1062 | #endif // SCRIPT_ENGINE_USER_MODE |
| 1063 | |
| 1064 | #ifdef SCRIPT_ENGINE_KERNEL_MODE |
| 1065 | |
| 1066 | BOOLEAN PoolManagerAllocatedMemory = FALSE; |
| 1067 | |
| 1068 | if (g_KernelDebuggerState && EnableInstantEventMechanism) |
| 1069 | { |
| 1070 | PoolManagerAllocatedMemory = TRUE; |
| 1071 | } |
| 1072 | |
| 1073 | if (!DebuggerClearEvent(EventId + DebuggerEventTagStartSeed, VmFuncVmxGetCurrentExecutionMode(), PoolManagerAllocatedMemory)) |
| 1074 | { |
| 1075 | LogInfo("Invalid tag id (%x)", EventId); |
| 1076 | } |
| 1077 | #endif // SCRIPT_ENGINE_KERNEL_MODE |
| 1078 | } |
| 1079 | |
| 1080 | /** |
| 1081 | * @brief Implementation of pause function |
no test coverage detected