Change-Id: Ie66d29bfbf6d106e9c49fb4f3738b26798c3a63c
Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
{
stats_main_t *sm = &stats_main;
vlib_worker_thread_t *w = (vlib_worker_thread_t *)arg;
+ vlib_thread_main_t *tm = vlib_get_thread_main();
/* stats thread wants no signals. */
{
pthread_sigmask (SIG_SETMASK, &s, 0);
}
+ if (vec_len(tm->thread_prefix))
+ vlib_set_thread_name((char *)
+ format(0, "%v_stats%c", tm->thread_prefix, '\0'));
+
clib_mem_set_heap (w->thread_mheap);
while (1) {