diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-02-02 13:24:31 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-03-26 13:27:45 -0400 |
| commit | 9b8e01cae44cf6cb3a1a08c483ab0deceda21375 (patch) | |
| tree | f00d4fd4c60933feb98442a423fea9b4266a8efc /lib/vty.c | |
| parent | 039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97 (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/vty.c')
| -rw-r--r-- | lib/vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -517,12 +517,12 @@ static int vty_command(struct vty *vty, char *buf) /* Warn about CPU hog that must be fixed. */ flog_warn( EC_LIB_SLOW_THREAD_CPU, - "SLOW COMMAND: command took %lums (cpu time %lums): %s", + "CPU HOG: command took %lums (cpu time %lums): %s", realtime / 1000, cputime / 1000, buf); } else if (realtime > CONSUMED_TIME_CHECK) { flog_warn( EC_LIB_SLOW_THREAD_WALL, - "SLOW COMMAND: command took %lums (cpu time %lums): %s", + "STARVATION: command took %lums (cpu time %lums): %s", realtime / 1000, cputime / 1000, buf); } } |
