summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-02-05 16:29:53 -0500
committerDave Barach <dave@barachs.net>2016-02-05 16:30:11 -0500
commit3e7deb11b5980ff619773f691975de2bec7a3450 (patch)
tree26d55fd7fbd7915c0f4055fd8f8b9d531ff79315 /vlib
parent505488553a966f1767b925539b282a10991067dd (diff)
Clean up per-thread elog track nomenclature.
Change-Id: I4b65b29f9291b3fd47e05576d9a0789af8912982 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/threads.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vlib/vlib/threads.c b/vlib/vlib/threads.c
index 3eed1080..72102561 100644
--- a/vlib/vlib/threads.c
+++ b/vlib/vlib/threads.c
@@ -517,7 +517,7 @@ static clib_error_t * start_workers (vlib_main_t * vm)
/* Set up the main thread */
vec_add2_aligned (vlib_worker_threads, w, 1, CLIB_CACHE_LINE_BYTES);
- w->elog_track.name = "thread 0";
+ w->elog_track.name = "main thread";
elog_track_register (&vm->elog_main, &w->elog_track);
if (vec_len(tm->thread_prefix))
@@ -599,7 +599,8 @@ static clib_error_t * start_workers (vlib_main_t * vm)
w->instance_id = k;
w->registration = tr;
- w->elog_track.name = (char *) format (0, "thread %d", i+1);
+ w->elog_track.name =
+ (char *) format (0, "%s %d", tr->name, k+1);
vec_add1 (w->elog_track.name, 0);
elog_track_register (&vm->elog_main, &w->elog_track);
@@ -719,7 +720,8 @@ static clib_error_t * start_workers (vlib_main_t * vm)
w->thread_function = tr->function;
w->thread_function_arg = w;
w->instance_id = j;
- w->elog_track.name = (char *) format (0, "thread %d", i+1);
+ w->elog_track.name =
+ (char *) format (0, "%s %d", tr->name, j+1);
w->registration = tr;
vec_add1 (w->elog_track.name, 0);
elog_track_register (&vm->elog_main, &w->elog_track);