mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 12:18:12 +00:00
vtysh: add lib/thread.c to vtysh_scan
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
9cb089fc43
commit
ee4dcee834
@ -148,6 +148,7 @@ vtysh_scan += \
|
||||
lib/routemap.c \
|
||||
lib/routemap_cli.c \
|
||||
lib/spf_backoff.c \
|
||||
lib/thread.c \
|
||||
lib/vrf.c \
|
||||
lib/vty.c \
|
||||
# end
|
||||
|
26
lib/thread.c
26
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;
|
||||
|
@ -139,7 +139,7 @@ sub scan_file {
|
||||
elsif ($file =~ /lib\/spf_backoff\.c$/) {
|
||||
$protocol = "VTYSH_ISISD";
|
||||
}
|
||||
elsif ($file =~ /lib\/vty\.c$/) {
|
||||
elsif ($file =~ /lib\/(vty|thread)\.c$/) {
|
||||
$protocol = "VTYSH_ALL";
|
||||
}
|
||||
elsif ($file =~ /librfp\/.*\.c$/ || $file =~ /rfapi\/.*\.c$/) {
|
||||
|
Loading…
Reference in New Issue
Block a user