diff options
author | Paul Jakma <paul@quagga.net> | 2010-01-11 15:48:15 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-05 00:37:56 +0100 |
commit | 28126202f3b419ffc8c391dd18b072d41926cbd8 (patch) | |
tree | 4057ec3cc7dcca51a7eaf492475b54f9afa92bf4 /lib/command.c | |
parent | c11c7be33e759223ad233b36b83b88ddf2774582 (diff) | |
download | quagga-28126202f3b419ffc8c391dd18b072d41926cbd8.tar.bz2 quagga-28126202f3b419ffc8c391dd18b072d41926cbd8.tar.xz |
lib: Add a command to clear the thread CPU history data
* (general) this can be useful when investigating thread latency problems,
when you don't want to have to restart a daemon between tests.
* thread.c: (cpu_record_(hash_)clear) wipe the stored thread cpu history
data, according to the filter, similar to the vty print code.
(clear_thread_cpu_cmd) new command to clear data.
* thread.h: export new command
* command.c: install it
Diffstat (limited to 'lib/command.c')
-rw-r--r-- | lib/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index 478125f2..502a9f4f 100644 --- a/lib/command.c +++ b/lib/command.c @@ -3650,6 +3650,8 @@ cmd_init (int terminal) install_element (VIEW_NODE, &show_thread_cpu_cmd); install_element (ENABLE_NODE, &show_thread_cpu_cmd); install_element (RESTRICTED_NODE, &show_thread_cpu_cmd); + + install_element (ENABLE_NODE, &clear_thread_cpu_cmd); install_element (VIEW_NODE, &show_work_queues_cmd); install_element (ENABLE_NODE, &show_work_queues_cmd); } |