Commit
47fce0bf8a910102ef65efa905ea30374014069c
by Oliver Smith
ttcn3-bts-test: run bpftrace scripts
Add logic to run bpftrace scripts attached to osmo-bts-* while the testsuite runs. The initial script is from Vadim: https://gitea.osmocom.org/osmocom/bpftrace-scripts/src/branch/master/udp_sendmsg_delay.bt
Commit
e79607f368054d02f889e0e6338836acfde72ab3
by Oliver Smith
common/respawn: improve logging
Add "[$(date)] respawn:" infront of all log messages, so it is clear that they come from this script and so we have timestamps that we can compare. This will be useful when running the bpftrace scripts along with osmo-bts-*, which will get restarted at the same time as the osmo-bts-* processes.
Commit
92d6cf0e865eb3479c2e5c69c6c41046dbf283e0
by Oliver Smith
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.