thread: Add show threads api

Change-Id: I3124238ab4d43bcef5590bad33a4ff0b5d8b7d15
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
Mohsin Kazmi
2018-09-11 20:27:09 +02:00
committed by Damjan Marion
parent 28c142e3de
commit 5d64c7868f
11 changed files with 239 additions and 63 deletions

View File

@@ -345,9 +345,9 @@ show_node_runtime (vlib_main_t * vm,
if (j > 0)
vlib_cli_output (vm, "---------------");
if (w->lcore_id > -1)
if (w->cpu_id > -1)
vlib_cli_output (vm, "Thread %d %s (lcore %u)", j, w->name,
w->lcore_id);
w->cpu_id);
else
vlib_cli_output (vm, "Thread %d %s", j, w->name);
}