Motorcortex Core
version: 2.7.6
|
Various helper functions.
Functions | |
bool | mcx::utils::configureMallocBehavior (size_t size_mb) |
Configures memory behavior for Real-time. More... | |
void | mcx::utils::signalCallbackHandler (int) |
bool | mcx::utils::running () |
bool | mcx::utils::setSwappiness (size_t swappiness) |
bool | mcx::utils::setPrintkLevel (size_t level) |
bool | mcx::utils::setCpuFreqPolicy (unsigned int cpu_id, const char *governor) |
bool | mcx::utils::startRealTime (size_t size_mb) |
bool | mcx::utils::startRealTime (const std::vector< uint32_t > &cpu_list, size_t size_mb=256) |
Activates Real-time mode and isolates CPUs. More... | |
bool | mcx::utils::startRealTime (cmd_line::Realtime opt) |
Activates Real-time mode and isolates CPUs. More... | |
bool | mcx::utils::startRealTime () |
Activates Real-time mode and isolates CPUs. More... | |
void | mcx::utils::stopRealTime (cmd_line::Realtime opt) |
Deactivate Real-time mode, removes CPUs' isolation. More... | |
void | mcx::utils::stopRealTime () |
Deactivate Real-time mode, removes CPUs' isolation. | |
bool mcx::utils::configureMallocBehavior | ( | size_t | size_mb | ) |
Configures memory behavior for Real-time.
Locks all current and future pages from preventing of being paged. Touches each page in this piece of memory to get it mapped into RAM.
size_mb | - size of RAM to reserve in Megabytes. |
bool mcx::utils::running | ( | ) |
Indicates that process is running.
bool mcx::utils::startRealTime | ( | ) |
Activates Real-time mode and isolates CPUs.
bool mcx::utils::startRealTime | ( | cmd_line::Realtime | opt | ) |
Activates Real-time mode and isolates CPUs.
@opt - struct with realtime options.
bool mcx::utils::startRealTime | ( | const std::vector< uint32_t > & | cpu_list, |
size_t | size_mb = 256 |
||
) |
Activates Real-time mode and isolates CPUs.
@cpu_list - list of the CPUs to isolate.
size_mb | - size of RAM to reserve in Megabytes. |
void mcx::utils::stopRealTime | ( | cmd_line::Realtime | opt | ) |
Deactivate Real-time mode, removes CPUs' isolation.
@opt - struct with realtime options.