From 053a0e44edb21713e0825f9c09ba4af12e686b38 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 13 Nov 2018 15:52:38 -0800 Subject: vcl/session: apps with process workers Allow apps to register child processes as app workers. In particular, on fork vcl now registers the child process with vpp as a new worker. Change-Id: I52a65fbc3292962b1f6e1fe0f6153f739e6e0d4a Signed-off-by: Florin Coras --- src/vcl/vcl_debug.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/vcl/vcl_debug.h') diff --git a/src/vcl/vcl_debug.h b/src/vcl/vcl_debug.h index 7b284166503..48ff21af1de 100644 --- a/src/vcl/vcl_debug.h +++ b/src/vcl/vcl_debug.h @@ -23,7 +23,16 @@ #define VDBG(_lvl, _fmt, _args...) \ if (VCL_DBG_ON && vcm->debug > _lvl) \ - clib_warning ("vcl: " _fmt, __vcl_worker_index, ##_args) + clib_warning ("vcl<%d:%d>: " _fmt, vcm->current_pid, \ + __vcl_worker_index, ##_args) + +#define VWRN(_fmt, _args...) \ +clib_warning ("vcl<%d:%d>: " _fmt, vcm->current_pid, \ + __vcl_worker_index, ##_args) + +#define VERR(_fmt, _args...) \ + clib_warning ("vcl<%d:%d>: ERROR " _fmt, vcm->current_pid, \ + __vcl_worker_index, ##_args) #define foreach_vcl_dbg_evt \ _(INIT, "vcl init track") \ -- cgit 1.2.3-korg