guard perf track lock hooks (#1591)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
6909c69438
commit
06360c2911
|
@ -209,7 +209,9 @@ uint32_t maxLockedDuration = 0;
|
||||||
#endif /* EFI_CLOCK_LOCKS */
|
#endif /* EFI_CLOCK_LOCKS */
|
||||||
|
|
||||||
void onLockHook(void) {
|
void onLockHook(void) {
|
||||||
|
#if ENABLE_PERF_TRACE
|
||||||
perfEventInstantGlobal(PE::GlobalLock);
|
perfEventInstantGlobal(PE::GlobalLock);
|
||||||
|
#endif /* ENABLE_PERF_TRACE */
|
||||||
|
|
||||||
#if EFI_CLOCK_LOCKS
|
#if EFI_CLOCK_LOCKS
|
||||||
lastLockTime = getTimeNowLowerNt();
|
lastLockTime = getTimeNowLowerNt();
|
||||||
|
@ -228,7 +230,9 @@ void onUnlockHook(void) {
|
||||||
// }
|
// }
|
||||||
#endif /* EFI_CLOCK_LOCKS */
|
#endif /* EFI_CLOCK_LOCKS */
|
||||||
|
|
||||||
|
#if ENABLE_PERF_TRACE
|
||||||
perfEventInstantGlobal(PE::GlobalUnlock);
|
perfEventInstantGlobal(PE::GlobalUnlock);
|
||||||
|
#endif /* ENABLE_PERF_TRACE */
|
||||||
}
|
}
|
||||||
|
|
||||||
void firmwareError(obd_code_e code, const char *fmt, ...) {
|
void firmwareError(obd_code_e code, const char *fmt, ...) {
|
||||||
|
|
Loading…
Reference in New Issue