aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-11-25 07:23:42 -0500
committerFlorin Coras <florin.coras@gmail.com>2020-11-26 17:17:36 +0000
commitaa676749d80c815689c33dcd1973fad40d0be117 (patch)
treeb8708c305dd481f9138ba1dcbfa60431072b75a4
parent119c0d78f40130bea253b26a21d3bdccbcfef62e (diff)
vlib: clean up event-logger CLI
Change "elog trace" to "event-logger trace"; corresponding change in test/test_vlib.py, verified that the vlib test vectors still pass even though they're not run on a regular basis ("make GCOV_TESTS=yes TEST=test_vlib ...") Type: improvement Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Idee4aa036573865e071a9bab87e27fb5d53b4933
-rw-r--r--src/vlib/cli.c24
-rw-r--r--test/test_vlib.py14
2 files changed, 19 insertions, 19 deletions
diff --git a/src/vlib/cli.c b/src/vlib/cli.c
index 68f16fc33f0..c6f71a5bd28 100644
--- a/src/vlib/cli.c
+++ b/src/vlib/cli.c
@@ -1477,8 +1477,9 @@ done:
#endif
static clib_error_t *
-elog_trace_command_fn (vlib_main_t * vm,
- unformat_input_t * input, vlib_cli_command_t * cmd)
+event_logger_trace_command_fn (vlib_main_t * vm,
+ unformat_input_t * input,
+ vlib_cli_command_t * cmd)
{
unformat_input_t _line_input, *line_input = &_line_input;
int enable = 1;
@@ -1567,21 +1568,20 @@ print_status:
*
* @cliexpar
* @clistart
- * elog trace api cli barrier
- * elog trace api cli barrier disable
- * elog trace dispatch
- * elog trace circuit-node ethernet-input
- * elog trace
+ * event-logger trace api cli barrier
+ * event-logger trace api cli barrier disable
+ * event-logger trace dispatch
+ * event-logger trace circuit-node ethernet-input
* @cliend
- * @cliexcmd{elog trace [api][cli][barrier][disable]}
+ * @cliexcmd{event-logger trace [api][cli][barrier][disable]}
?*/
/* *INDENT-OFF* */
-VLIB_CLI_COMMAND (elog_trace_command, static) =
+VLIB_CLI_COMMAND (event_logger_trace_command, static) =
{
- .path = "elog trace",
- .short_help = "elog trace [api][cli][barrier][dispatch]\n"
+ .path = "event-logger trace",
+ .short_help = "event-logger trace [api][cli][barrier][dispatch]\n"
"[circuit-node <name> e.g. ethernet-input][disable]",
- .function = elog_trace_command_fn,
+ .function = event_logger_trace_command_fn,
};
/* *INDENT-ON* */
diff --git a/test/test_vlib.py b/test/test_vlib.py
index 8bc5f57a5d5..8a02639e76b 100644
--- a/test/test_vlib.py
+++ b/test/test_vlib.py
@@ -44,7 +44,7 @@ class TestVlib(VppTestCase):
" incrementing 30\n"
" }\n"
"}\n",
- "elog trace dispatch",
+ "event-logger trace dispatch",
"event-logger stop",
"event-logger clear",
"event-logger resize 102400",
@@ -131,14 +131,14 @@ class TestVlib(VppTestCase):
" incrementing 30\n"
" }\n"
"}\n",
- "elog trace",
- "elog trace enable",
- "elog trace api cli barrier",
+ "event-logger trace",
+ "event-logger trace enable",
+ "event-logger trace api cli barrier",
"pa en",
"show interface bogus",
- "elog trace disable api cli barrier",
- "elog trace circuit-node ethernet-input",
- "elog trace circuit-node ethernet-input disable",
+ "event-logger trace disable api cli barrier",
+ "event-logger trace circuit-node ethernet-input",
+ "event-logger trace circuit-node ethernet-input disable",
"clear interfaces",
"test vlib",
"test vlib2",