diff options
author | David Lamparter <equinox@diac24.net> | 2021-04-13 20:38:09 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-06-24 16:42:59 +0200 |
commit | 45f0118832172d71dd19e437112e9907c60331f2 (patch) | |
tree | af0a4d36c15759b8ad1bf4d3c6450aed492971ec /vtysh/vtysh.c | |
parent | build: remove unused --disable-rusage (diff) | |
download | frr-45f0118832172d71dd19e437112e9907c60331f2.tar.xz frr-45f0118832172d71dd19e437112e9907c60331f2.zip |
lib: make cputime checks runtime options (v2)
...really no reason to force this into a compile time decision. The
only point is avoiding the getrusage() syscall, which can easily be a
runtime decision.
[v2: also split cputime & walltime limits]
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to '')
-rw-r--r-- | vtysh/vtysh.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 41b7bc8a1..507c6ce88 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2851,7 +2851,6 @@ DEFUN (vtysh_show_poll, return show_per_daemon(vty, argv, argc, "Thread statistics for %s:\n"); } -#ifndef EXCLUDE_CPU_TIME DEFUN (vtysh_show_thread, vtysh_show_thread_cmd, "show thread cpu [FILTER]", @@ -2862,7 +2861,6 @@ DEFUN (vtysh_show_thread, { return show_per_daemon(vty, argv, argc, "Thread statistics for %s:\n"); } -#endif DEFUN (vtysh_show_work_queues, vtysh_show_work_queues_cmd, @@ -4567,9 +4565,7 @@ void vtysh_init_vty(void) install_element(VIEW_NODE, &vtysh_show_modules_cmd); install_element(VIEW_NODE, &vtysh_show_work_queues_cmd); install_element(VIEW_NODE, &vtysh_show_work_queues_daemon_cmd); -#ifndef EXCLUDE_CPU_TIME install_element(VIEW_NODE, &vtysh_show_thread_cmd); -#endif install_element(VIEW_NODE, &vtysh_show_poll_cmd); /* Logging */ |