X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fthreads_cli.c;h=bcb85ec69fbb30e1e7b685997d9472944779b99b;hb=5da10c4c5501d40366df451703c2ffa3993be8cf;hp=a47d86401bc1d4bb1f25b3e4483cc07eefb3fb83;hpb=5d64c7868f67749a6c99eb4ee5998b518ab6c71c;p=vpp.git diff --git a/src/vlib/threads_cli.c b/src/vlib/threads_cli.c index a47d86401bc..bcb85ec69fb 100644 --- a/src/vlib/threads_cli.c +++ b/src/vlib/threads_cli.c @@ -67,8 +67,8 @@ show_threads_fn (vlib_main_t * vm, if (cpu_id > -1) { int core_id = w->core_id; - int socket_id = w->socket_id; - line = format (line, "%-7u%-7u%-7u%", cpu_id, core_id, socket_id); + int numa_id = w->numa_id; + line = format (line, "%-7u%-7u%-7u%", cpu_id, core_id, numa_id); } else { @@ -168,9 +168,9 @@ trace_frame_queue (vlib_main_t * vm, unformat_input_t * input, fqt = &fqm->frame_queue_traces[fqix]; fqh = &fqm->frame_queue_histogram[fqix]; - memset (fqt->n_vectors, 0xff, sizeof (fqt->n_vectors)); + clib_memset (fqt->n_vectors, 0xff, sizeof (fqt->n_vectors)); fqt->written = 0; - memset (fqh, 0, sizeof (*fqh)); + clib_memset (fqh, 0, sizeof (*fqh)); fqm->vlib_frame_queues[fqix]->trace = enable; } @@ -532,29 +532,6 @@ VLIB_CLI_COMMAND (cmd_test_frame_queue_threshold,static) = { }; /* *INDENT-ON* */ -static clib_error_t * -test_threads_barrier_elog_command_fn (vlib_main_t * vm, - unformat_input_t * input, - vlib_cli_command_t * cmd) -{ - if (unformat (input, "enable")) - vlib_worker_threads->barrier_elog_enabled = 1; - else if (unformat (input, "disable")) - vlib_worker_threads->barrier_elog_enabled = 0; - else - return clib_error_return (0, "please choose enable or disable"); - return 0; -} - -/* *INDENT-OFF* */ -VLIB_CLI_COMMAND (test_elog_vector_length_trigger, static) = -{ - .path = "test threads barrier-elog", - .short_help = "test threads barrier-elog", - .function = test_threads_barrier_elog_command_fn, -}; -/* *INDENT-ON* */ - /* * fd.io coding-style-patch-verification: ON *