]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add support for recording named runtime with rr
authorMichal Nowak <mnowak@isc.org>
Wed, 8 Nov 2023 18:21:30 +0000 (19:21 +0100)
committerMichal Nowak <mnowak@isc.org>
Mon, 4 Dec 2023 19:08:18 +0000 (20:08 +0100)
The traces of the named process are stored in the directory
$system_test/nsX/named-Y/.

(cherry picked from commit e088e8a992008ba5e0dc1c540f808a03e69cd619)

bin/tests/system/README
bin/tests/system/start.pl

index b15ad94db90c009d833e8d0fb5899bc4e066bd39..479a0a8e3d8be9d4b99fc0731c4246035ace5162 100644 (file)
@@ -662,6 +662,13 @@ or SEQUENTIAL variables.
 need to edit multiple files to add a test.)
 
 
+rr
+---
+When running system tests, named can be run under the rr tool. rr records a
+trace to the $system_test/nsX/named-Y/ directory, which can be later used to
+replay named. To enable this, execute start.pl with the USE_RR environment
+variable set.
+
 Maintenance Notes
 ===
 This section is aimed at developers maintaining BIND's system test framework.
index 8003d048b4bcc8b5ac422031df3d751d248761d8..d593eb9fba00e72e7f5d10a47c0dede343760a3b 100755 (executable)
@@ -231,6 +231,9 @@ sub construct_ns_command {
 
        if ($taskset) {
                $command = "taskset $taskset $NAMED ";
+       } elsif ($ENV{'USE_RR'}) {
+               $ENV{'_RR_TRACE_DIR'} = ".";
+               $command = "rr record --chaos $NAMED ";
        } else {
                $command = "$NAMED ";
        }