From 039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 2 Feb 2021 12:56:06 -0500 Subject: lib: Differentiate between real and cpu bound processes When generating SLOW_THREAD warnings let's differentiate between a cpu bound process and a wall bound process. Effectively a slow thread can now be a process in FRR doing lots of work( cpu bound ) or wall bound ( the cpu is heavy load and a FRR process may be pre-empted and never scheduled ). Signed-off-by: Donald Sharp --- lib/lib_errors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lib_errors.h') diff --git a/lib/lib_errors.h b/lib/lib_errors.h index 4730b6aa33..9f0f58d20b 100644 --- a/lib/lib_errors.h +++ b/lib/lib_errors.h @@ -44,7 +44,8 @@ enum lib_log_refs { EC_LIB_SNMP, EC_LIB_STREAM, EC_LIB_LINUX_NS, - EC_LIB_SLOW_THREAD, + EC_LIB_SLOW_THREAD_CPU, + EC_LIB_SLOW_THREAD_WALL, EC_LIB_NO_THREAD, EC_LIB_RMAP_RECURSION_LIMIT, EC_LIB_BACKUP_CONFIG, -- cgit v1.2.3