rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
runtime_state.cpp
Go to the documentation of this file.
1/*
2 * runtime_state.cpp
3 *
4 * Created on: Jan 31, 2021
5 * @author Andrey Belomutskiy, (c) 2012-2021
6 */
7
8#include "pch.h"
9#include "runtime_state.h"
10
11// todo: revive implementation! we shall measure how far is actual execution timestamp from desired execution timestamp
13
14extern uint32_t maxLockedDuration;
15extern uint32_t maxEventCallbackDuration;
16extern uint32_t triggerMaxDuration;
17
18extern int maxTriggerReentrant;
19
20#if EFI_PROD_CODE
21extern uint32_t maxPrecisionCallbackDuration;
22#endif // EFI_PROD_CODE
23
24extern uint32_t maxSchedulingPrecisionLoss;
25
27#if (EFI_PROD_CODE || EFI_SIMULATOR) && EFI_SHAFT_POSITION_INPUT
29#endif // EFI_PROD_CODE || EFI_SIMULATOR
30
32
33#if EFI_CLOCK_LOCKS
35#endif // EFI_CLOCK_LOCKS
36
37#if EFI_PROD_CODE
39#endif // EFI_PROD_CODE
40}
41
43 efiPrintf("maxSchedulingPrecisionLoss=%lu", maxSchedulingPrecisionLoss);
44
45#if EFI_CLOCK_LOCKS
46 efiPrintf("maxLockedDuration=%lu / maxTriggerReentrant=%d", maxLockedDuration, maxTriggerReentrant);
47#endif // EFI_CLOCK_LOCKS
48
49 efiPrintf("maxEventCallbackDuration=%lu", maxEventCallbackDuration);
50}
uint32_t maxLockedDuration
int maxTriggerReentrant
uint32_t maxSchedulingPrecisionLoss
uint32_t maxPrecisionCallbackDuration
uint32_t triggerMaxDuration
uint32_t maxEventCallbackDuration
void printRuntimeStats(void)
void resetMaxValues()