2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

when recording an rr trace, use libtool

when running a system test with the USE_RR environment
variable set to 1, an rr trace is generated for named.
because rr wasn't run using libtool --mode=execute, the
trace would actually be generated for the wrapper script
generated by libtool, not for the actual named binary.

(cherry picked from commit 00d7c7c346)
This commit is contained in:
Evan Hunt
2025-03-01 21:03:51 -08:00
parent 693a1d41ed
commit 6c3d660d7e

View File

@@ -234,7 +234,7 @@ sub construct_ns_command {
$command = "taskset $taskset $NAMED "; $command = "taskset $taskset $NAMED ";
} elsif ($ENV{'USE_RR'}) { } elsif ($ENV{'USE_RR'}) {
$ENV{'_RR_TRACE_DIR'} = "."; $ENV{'_RR_TRACE_DIR'} = ".";
$command = "rr record --chaos $NAMED "; $command = "$ENV{'TOP_BUILDDIR'}/libtool --mode=execute rr record --chaos $NAMED ";
} else { } else {
$command = "$NAMED "; $command = "$NAMED ";
} }