From 6c3d660d7e59e7b4967f55d6c60614a84a512144 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Sat, 1 Mar 2025 21:03:51 -0800 Subject: [PATCH] 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 00d7c7c3462dd13b0cf003ad825689c218624ff0) --- bin/tests/system/start.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 67c33b86f2..ebbeb687bf 100755 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -234,7 +234,7 @@ sub construct_ns_command { $command = "taskset $taskset $NAMED "; } elsif ($ENV{'USE_RR'}) { $ENV{'_RR_TRACE_DIR'} = "."; - $command = "rr record --chaos $NAMED "; + $command = "$ENV{'TOP_BUILDDIR'}/libtool --mode=execute rr record --chaos $NAMED "; } else { $command = "$NAMED "; }