]> git.proxmox.com Git - mirror_frr.git/commit - lib/event.c
lib, vtysh: Add `show thread timers` command
authorDonald Sharp <sharpd@nvidia.com>
Wed, 23 Feb 2022 15:14:53 +0000 (10:14 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 28 Feb 2022 11:39:07 +0000 (06:39 -0500)
commit22f31b8c525bb73a8c2e7602c6a6996b608913f5
tree2d626dc96237e28cb4c8f5c01d38aab4fa9c058d
parentd7da6520e96418b37878b90d6b7696595870110a
lib, vtysh: Add `show thread timers` command

Add the ability to inspect the timers and when they will pop
per daemon:

sharpd@eva ~/frr (thread_return_null)> vtysh -c "show thread timers"
Thread timers for zebra:

Showing timers for default
--------------------------
  rtadv_timer                                       00:00:00.520
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.745
  if_zebra_speed_update                             00:00:02.746
  if_zebra_speed_update                             00:00:02.744
  if_zebra_speed_update                             00:00:02.745

Showing timers for Zebra dplane thread
--------------------------------------

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/thread.c
vtysh/vtysh.c