diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-26 13:45:37 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2021-03-26 16:33:42 +0100 |
commit | f553a2cbbb8cca84ebf033335ebd2cd26dc19d69 (patch) | |
tree | 3705c2c0121769dff96a122cef13886d5f0e5205 /src/vlib/threads.c | |
parent | 6ffb7c61899eb782416cbd2f117042a583f189f7 (diff) |
vlib: introduce vlib_get_elog_main()
Type: improvement
Change-Id: I73383eb15186021cd6527d112da8443a0082f129
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r-- | src/vlib/threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c index 939f9107556..cf82e1802d6 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -686,7 +686,7 @@ 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 = "main thread"; - elog_track_register (&vm->elog_main, &w->elog_track); + elog_track_register (vlib_get_elog_main (), &w->elog_track); if (vec_len (tm->thread_prefix)) { @@ -770,7 +770,7 @@ start_workers (vlib_main_t * vm) 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); + elog_track_register (vlib_get_elog_main (), &w->elog_track); if (tr->no_data_structure_clone) continue; @@ -944,7 +944,7 @@ start_workers (vlib_main_t * vm) (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); + elog_track_register (vlib_get_elog_main (), &w->elog_track); } } } |