[XS] Change in docker-playground[master]: ttcn3-bts-test: give bpftrace time to print stats
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/41727?usp=email ) Change subject: ttcn3-bts-test: give bpftrace time to print stats ...................................................................... ttcn3-bts-test: give bpftrace time to print stats When running with bpftrace, send a kill signal to the bpftrace scripts before killing the container. Otherwise the scripts don't print their statistics, the end of the log then looks like this: [Thu Dec 18 18:06:06 UTC 2025] respawn: 2: starting: /data/bpftrace/udp_sendmsg_delay.sh + pidof osmo-bts-trx + bpftrace /data/bpftrace/udp_sendmsg_delay.bt -p 56 Attaching 3 probes... Tracing udp_sendmsg() latency... Hit Ctrl-C to end. Change-Id: I1781bddddf429c4c6a951b519a639b8663d397e6 --- M ttcn3-bts-test/jenkins.sh 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/27/41727/1 diff --git a/ttcn3-bts-test/jenkins.sh b/ttcn3-bts-test/jenkins.sh index 24a91a5..8ddf037 100755 --- a/ttcn3-bts-test/jenkins.sh +++ b/ttcn3-bts-test/jenkins.sh @@ -169,6 +169,12 @@ --name ${BUILD_TAG}-ttcn3-bts-test \ $DOCKER_ARGS \ $REPO_USER/ttcn3-bts-test + + if [ "$RUN_BPFTRACE" = 1 ]; then + # Give bpftrace scripts time to print their stats + docker exec "${BUILD_TAG}-bts" sh -x -c 'kill $(pidof bpftrace)' + sleep 0.5 + fi } set_pcuif_version() { -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/41727?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I1781bddddf429c4c6a951b519a639b8663d397e6 Gerrit-Change-Number: 41727 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de>
participants (1)
-
osmith