diff options
Diffstat (limited to 'src/vlib')
-rw-r--r-- | src/vlib/main.c | 12 | ||||
-rw-r--r-- | src/vlib/main.h | 2 | ||||
-rw-r--r-- | src/vlib/threads.c | 6 | ||||
-rw-r--r-- | src/vlib/threads.h | 2 |
4 files changed, 21 insertions, 1 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c index 8b5611a8e39..b868a64e4b5 100644 --- a/src/vlib/main.c +++ b/src/vlib/main.c @@ -2510,6 +2510,18 @@ VLIB_CLI_COMMAND (pcap_dispatch_trace_command, static) = { }; /* *INDENT-ON* */ +vlib_main_t * +vlib_get_main_not_inline (void) +{ + return vlib_get_main (); +} + +elog_main_t * +vlib_get_elog_main_not_inline () +{ + return &vlib_global_main.elog_main; +} + /* * fd.io coding-style-patch-verification: ON * diff --git a/src/vlib/main.h b/src/vlib/main.h index 45a521a8667..c582bc12f4e 100644 --- a/src/vlib/main.h +++ b/src/vlib/main.h @@ -489,6 +489,8 @@ typedef struct } vlib_pcap_dispatch_trace_args_t; int vlib_pcap_dispatch_trace_configure (vlib_pcap_dispatch_trace_args_t *); +vlib_main_t *vlib_get_main_not_inline (void); +elog_main_t *vlib_get_elog_main_not_inline (); #endif /* included_vlib_main_h */ diff --git a/src/vlib/threads.c b/src/vlib/threads.c index ecca7e3ea52..64af8a0d617 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -2010,6 +2010,12 @@ VLIB_CLI_COMMAND (f_command, static) = }; /* *INDENT-ON* */ +vlib_thread_main_t * +vlib_get_thread_main_not_inline (void) +{ + return vlib_get_thread_main (); +} + /* * fd.io coding-style-patch-verification: ON * diff --git a/src/vlib/threads.h b/src/vlib/threads.h index 659f052a720..6894cdf8379 100644 --- a/src/vlib/threads.h +++ b/src/vlib/threads.h @@ -632,7 +632,7 @@ vlib_process_signal_event_mt_helper (vlib_process_signal_event_mt_args_t * args); void vlib_rpc_call_main_thread (void *function, u8 * args, u32 size); void vlib_get_thread_core_numa (vlib_worker_thread_t * w, unsigned cpu_id); - +vlib_thread_main_t *vlib_get_thread_main_not_inline (void); #endif /* included_vlib_threads_h */ |