summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-02-02 13:24:31 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-03-26 13:27:45 -0400
commit9b8e01cae44cf6cb3a1a08c483ab0deceda21375 (patch)
treef00d4fd4c60933feb98442a423fea9b4266a8efc /lib/thread.h
parent039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97 (diff)
lib: Incorporate Wall and Cpu warning into `show thread cpu`
Incorporate into the `show thread cpu` the number of times we have issued warnings about a particular thread being too slow. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h
index af68331131..fee728dbf9 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -119,6 +119,8 @@ struct thread {
struct cpu_thread_history {
int (*func)(struct thread *);
+ atomic_size_t total_cpu_warn;
+ atomic_size_t total_wall_warn;
atomic_size_t total_calls;
atomic_size_t total_active;
struct time_stats {