rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
engine_controller_misc.cpp
Go to the documentation of this file.
1/*
2 * @file engine_controller_misc.cpp
3 *
4 * @date Mar 22, 2020
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#include "pch.h"
9
10static uint8_t nextThreadId = 0;
11void threadInitHook(void* vtp) {
12 // No lock required, this is already under lock
13 auto tp = reinterpret_cast<thread_t*>(vtp);
14 tp->threadId = ++nextThreadId;
15}
16
17#if ENABLE_PERF_TRACE
21
25
29
30#else
31void irqEnterHook() {}
32void irqExitHook() {}
33void contextSwitchHook() {}
34#endif /* ENABLE_PERF_TRACE */
void irqExitHook()
static uint8_t nextThreadId
void irqEnterHook()
void contextSwitchHook()
void threadInitHook(void *vtp)
void perfEventInstantGlobal(PE event)
void perfEventBegin(PE event)
void perfEventEnd(PE event)
@ ContextSwitch
@ ISR