diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-10 14:25:39 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-17 18:43:28 -0500 |
| commit | f7c62e11d6f4284ef3471645f2e2a986b8301a18 (patch) | |
| tree | 4c53a83d3fa4ffbdab8df626b2f4e938842e858a /lib/thread.h | |
| parent | b3f5645df3548246fda33853d10ba830e034226a (diff) | |
lib: Fix 'show thread cpu' to display active threads
Fix the display of 'show thread cpu' to keep track
of the number of active threads and to display that
information.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib: Fix thread_execute_crash
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index 5c6b96a32d..c22bb4828d 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -115,6 +115,7 @@ struct cpu_thread_history { int (*func)(struct thread *); unsigned int total_calls; + unsigned int total_active; struct time_stats { unsigned long total, max; |
