summaryrefslogtreecommitdiff
path: root/lib/lib_errors.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-02-02 12:56:06 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-03-26 11:41:57 -0400
commit039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97 (patch)
treef5614f80d048b8a3c4906f06284c45ef6373ec60 /lib/lib_errors.h
parent694df37daf95940e923905fdd1096541d860bbfd (diff)
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/lib_errors.h')
-rw-r--r--lib/lib_errors.h3
1 files changed, 2 insertions, 1 deletions
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,