diff options
author | Florin Coras <fcoras@cisco.com> | 2018-11-26 17:01:36 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-29 11:27:18 +0000 |
commit | 47c40e2d944c9a29677d0542103207ba8372b66a (patch) | |
tree | e43cf5361213d119df53fb16c15cf0dca550f2d4 /src/vcl/vcl_debug.h | |
parent | 743ee3e12531ec3c6ba2e2add694dde3361b0e03 (diff) |
vcl: basic support for apps that fork
- intercept fork and register a new worker with vpp
- share sessions between parent and forked child
- keep binary api state per worker
Change-Id: Ib177517d661724fa042bd2d98d18e777056352a2
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_debug.h')
-rw-r--r-- | src/vcl/vcl_debug.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/vcl/vcl_debug.h b/src/vcl/vcl_debug.h index 48ff21af1de..191d4004eba 100644 --- a/src/vcl/vcl_debug.h +++ b/src/vcl/vcl_debug.h @@ -23,15 +23,18 @@ #define VDBG(_lvl, _fmt, _args...) \ if (VCL_DBG_ON && vcm->debug > _lvl) \ - clib_warning ("vcl<%d:%d>: " _fmt, vcm->current_pid, \ + clib_warning ("vcl<%d:%d>: " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ __vcl_worker_index, ##_args) #define VWRN(_fmt, _args...) \ -clib_warning ("vcl<%d:%d>: " _fmt, vcm->current_pid, \ - __vcl_worker_index, ##_args) + clib_warning ("vcl<%d:%d>: " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ + __vcl_worker_index, ##_args) #define VERR(_fmt, _args...) \ - clib_warning ("vcl<%d:%d>: ERROR " _fmt, vcm->current_pid, \ + clib_warning ("vcl<%d:%d>: ERROR " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ __vcl_worker_index, ##_args) #define foreach_vcl_dbg_evt \ |