]> 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 17:38:29 +0000 (18:38 +0100)
The traces of the named process are stored in the directory
$system_test/nsX/named-Y/.

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

index 1d4d4f7b66759c525fe089faea0bfa850013572c..b4e6f4ed55f5abbc163d2d947cf346a4b8dde153 100644 (file)
@@ -114,6 +114,13 @@ Alternately, using the make command is also supported:
 
     make [-j numproc] 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.
+
 ### Test Artifacts
 
 Each test module is executed inside a unique temporary directory which contains
index 38ceb6e6b39eab5722f333b3b630d341b8eb45a0..32d207416884a78bb11426e1807813ff804fe05d 100755 (executable)
@@ -232,6 +232,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 ";
        }