vlib: leave SIGPROF signal with its default handler 06/25906/2
authorJieqiang Wang <jieqiang.wang@arm.com>
Mon, 20 Jan 2020 05:43:38 +0000 (13:43 +0800)
committerDamjan Marion <dmarion@me.com>
Sat, 21 Mar 2020 12:11:38 +0000 (12:11 +0000)
commit6f533d780ded2d0d2a4ba2224e4a9f7d181c7577
treef6948a40489454367b95e06ad8edc556a5575cf3
parent2ed4204c91bf0c79639f39dc01601d58a0e536ee
vlib: leave SIGPROF signal with its default handler

When profiling VPP with MAP (a software profile suite on Arm CPUs, see details in
https://www.arm.com/products/development-tools/server-and-hpc/forge/map) on Arm
servers, VPP will receive SIGPROF signal because MAP uses SIGPROF signal to drive
its sampler to do profiling on VPP. However, the default action of SIGPROF signal
handler in VPP such as unix_signal_handler() is process termination. To profile
VPP with MAP, the SIGPROF handler should be left as default, and MAP sampler will
overwrite it with its own implementation.

Type: feature

Change-Id: Ie14e513d35ec27a66e95067689408bad8ed1ad6b
Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
src/vat/main.c
src/vlib/unix/main.c
src/vpp/api/vpp_get_metrics.c