]> 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 18:28:05 +0000 (19:28 +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 58e6048ae02a9de033378df3e7dde8b862f27841..cb9f71b237d8e6bcf2594e86f30f57c8ca8b5e77 100644 (file)
@@ -710,6 +710,14 @@ 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.
+
 Developer Notes for pytest runner
 ===
 
index c0163a2a2300b053b68ab1187031351d0a20c6d3..904aa9b1e038f097ffb87ea6613b4a0ea25f7b7d 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 ";
        }