summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-04-14 00:04:12 +0200
committerDavid Lamparter <equinox@diac24.net>2021-04-15 23:12:45 +0200
commitee4dcee834a2e16ce0085902a6c3bbd55cac99a9 (patch)
treebcae4d47383e5c358bed4d3e6c6d5159adf35f3b /lib/thread.c
parent9cb089fc43bccbe4159c7a9a24e9dc06ed5c943f (diff)
vtysh: add lib/thread.c to vtysh_scan
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 866090341e..e0b6b24595 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -300,13 +300,13 @@ static uint8_t parse_filter(const char *filterstr)
}
#ifndef EXCLUDE_CPU_TIME
-DEFUN (show_thread_cpu,
- show_thread_cpu_cmd,
- "show thread cpu [FILTER]",
- SHOW_STR
- "Thread information\n"
- "Thread CPU usage\n"
- "Display filter (rwtex)\n")
+DEFUN_NOSH (show_thread_cpu,
+ show_thread_cpu_cmd,
+ "show thread cpu [FILTER]",
+ SHOW_STR
+ "Thread information\n"
+ "Thread CPU usage\n"
+ "Display filter (rwtex)\n")
{
uint8_t filter = (uint8_t)-1U;
int idx = 0;
@@ -367,12 +367,12 @@ static void show_thread_poll_helper(struct vty *vty, struct thread_master *m)
}
}
-DEFUN (show_thread_poll,
- show_thread_poll_cmd,
- "show thread poll",
- SHOW_STR
- "Thread information\n"
- "Show poll FD's and information\n")
+DEFUN_NOSH (show_thread_poll,
+ show_thread_poll_cmd,
+ "show thread poll",
+ SHOW_STR
+ "Thread information\n"
+ "Show poll FD's and information\n")
{
struct listnode *node;
struct thread_master *m;