From ab01a00176db60080047731ab548136e773b6c51 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 3 Feb 2021 09:13:59 -0500 Subject: lib: Figure out if we are being starved for cpu If a thread timer should have popped CPU_CONSUMED_CHECK seconds in the past, and we are only handling it now. Consider the thread starved and notice it. Signed-off-by: Donald Sharp --- lib/lib_errors.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib_errors.h') diff --git a/lib/lib_errors.h b/lib/lib_errors.h index 9f0f58d20b..64ac6c1ceb 100644 --- a/lib/lib_errors.h +++ b/lib/lib_errors.h @@ -46,6 +46,7 @@ enum lib_log_refs { EC_LIB_LINUX_NS, EC_LIB_SLOW_THREAD_CPU, EC_LIB_SLOW_THREAD_WALL, + EC_LIB_STARVE_THREAD, EC_LIB_NO_THREAD, EC_LIB_RMAP_RECURSION_LIMIT, EC_LIB_BACKUP_CONFIG, -- cgit v1.2.3