diff options
author | Dave Barach <dave@barachs.net> | 2018-10-01 09:25:32 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-01 15:59:35 +0000 |
commit | c3a06556d1a4a63646d4cc7aa76274177a56c13f (patch) | |
tree | 76eee7fa1da3b882109c2fa9dbd8f94dfc18110b /src/vlib/threads.c | |
parent | 904a850899db0a40bf885d2ee2e839a5f8dfbeb3 (diff) |
API / CLI event-log tracing
Add an "elog trace [api][cli][barrier]" debug CLI command. Removed the
barrier elog test command. Remove unused reliable multicast code.
Change-Id: Ib3ecde901b7c49fe92b313d0087cd7e776adcdce
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r-- | src/vlib/threads.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c index 055998adac8..981209bf2e7 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -43,8 +43,8 @@ vlib_thread_main_t vlib_thread_main; * imapacts observed timings. */ -static u32 -elog_id_for_msg_name (const char *msg_name) +u32 +elog_global_id_for_msg_name (const char *msg_name) { uword *p, r; static uword *h; @@ -85,7 +85,8 @@ barrier_trace_sync (f64 t_entry, f64 t_open, f64 t_closed) ed = ELOG_DATA (&vlib_global_main.elog_main, e); ed->count = (int) vlib_worker_threads[0].barrier_sync_count; - ed->caller = elog_id_for_msg_name (vlib_worker_threads[0].barrier_caller); + ed->caller = elog_global_id_for_msg_name + (vlib_worker_threads[0].barrier_caller); ed->t_entry = (int) (1000000.0 * t_entry); ed->t_open = (int) (1000000.0 * t_open); ed->t_closed = (int) (1000000.0 * t_closed); @@ -111,7 +112,8 @@ barrier_trace_sync_rec (f64 t_entry) ed = ELOG_DATA (&vlib_global_main.elog_main, e); ed->depth = (int) vlib_worker_threads[0].recursion_level - 1; - ed->caller = elog_id_for_msg_name (vlib_worker_threads[0].barrier_caller); + ed->caller = elog_global_id_for_msg_name + (vlib_worker_threads[0].barrier_caller); } static inline void |