test/iscsi_tgt: run vpp with gdb
Change-Id: Ibffdc0d198451d7ef891b4062205c5e0eaf79bee Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457471 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
ef489303b4
commit
9c9709b9b1
@ -102,6 +102,24 @@ function iscsitestfini() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function gdb_attach() {
|
||||||
|
gdb -q --batch \
|
||||||
|
-ex 'handle SIGHUP nostop pass' \
|
||||||
|
-ex 'handle SIGQUIT nostop pass' \
|
||||||
|
-ex 'handle SIGPIPE nostop pass' \
|
||||||
|
-ex 'handle SIGALRM nostop pass' \
|
||||||
|
-ex 'handle SIGTERM nostop pass' \
|
||||||
|
-ex 'handle SIGUSR1 nostop pass' \
|
||||||
|
-ex 'handle SIGUSR2 nostop pass' \
|
||||||
|
-ex 'handle SIGCHLD nostop pass' \
|
||||||
|
-ex 'set print thread-events off' \
|
||||||
|
-ex 'cont' \
|
||||||
|
-ex 'thread apply all bt' \
|
||||||
|
-ex 'quit' \
|
||||||
|
--tty=/dev/stdout \
|
||||||
|
-p $1
|
||||||
|
}
|
||||||
|
|
||||||
function start_vpp() {
|
function start_vpp() {
|
||||||
# We need to make sure that posix side doesn't send jumbo packets while
|
# We need to make sure that posix side doesn't send jumbo packets while
|
||||||
# for VPP side maximal size of MTU for TCP is 1460 and tests doesn't work
|
# for VPP side maximal size of MTU for TCP is 1460 and tests doesn't work
|
||||||
@ -125,6 +143,8 @@ function start_vpp() {
|
|||||||
vpp_pid=$!
|
vpp_pid=$!
|
||||||
echo "VPP Process pid: $vpp_pid"
|
echo "VPP Process pid: $vpp_pid"
|
||||||
|
|
||||||
|
gdb_attach $vpp_pid &
|
||||||
|
|
||||||
# Wait until VPP starts responding
|
# Wait until VPP starts responding
|
||||||
xtrace_disable
|
xtrace_disable
|
||||||
counter=40
|
counter=40
|
||||||
|
Loading…
Reference in New Issue
Block a user