mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '3198-add-rr-record-9.18' into 'bind-9.18'
[9.18] Add support for recording named with rr See merge request isc-projects/bind9!8536
This commit is contained in:
commit
3b24611844
6 changed files with 16 additions and 26 deletions
|
|
@ -710,13 +710,13 @@ or SEQUENTIAL variables.
|
|||
need to edit multiple files to add a test.)
|
||||
|
||||
|
||||
Valgrind
|
||||
rr
|
||||
---
|
||||
When running system tests, named can be run under Valgrind. The output from
|
||||
Valgrind are sent to per-process files that can be reviewed after the test has
|
||||
completed. To enable this, set the USE_VALGRIND environment variable to
|
||||
"helgrind" to run the Helgrind tool, or any other value to run the Memcheck
|
||||
tool. To use "helgrind" effectively, build BIND with --disable-atomic.
|
||||
|
||||
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
|
||||
===
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@
|
|||
find . -type f \( \
|
||||
-name '*~' -o -name 'core' -o -name '*.core' \
|
||||
-o -name '*.log' -o -name '*.pid' -o -name '*.keyset' \
|
||||
-o -name named.run -o -name ans.run \
|
||||
-o -name '*-valgrind-*.log' \) -print | xargs rm -f
|
||||
-o -name named.run -o -name ans.run \) -print | xargs rm -f
|
||||
|
||||
status=0
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
-c named.conf -m record -T nosyslog -d 99 -D logfileconfig-ns1 -X named.lock -U 4
|
||||
-c named.conf -m record -T nosyslog -f -d 99 -D logfileconfig-ns1 -X named.lock -U 4
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
-c named.conf -m record -T nosyslog -d 99 -D logfileconfig-ns1 -X named.lock -U 4 -L named_deflog
|
||||
-c named.conf -m record -T nosyslog -f -d 99 -D logfileconfig-ns1 -X named.lock -U 4 -L named_deflog
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
-m record -c named.conf -d 99 -D rpzextra-ns1 -X named.lock -U 4 -T maxcachesize=2097152
|
||||
-m record -c named.conf -d 99 -f -D rpzextra-ns3 -X named.lock -U 4 -T maxcachesize=2097152
|
||||
|
|
|
|||
|
|
@ -230,22 +230,13 @@ sub construct_ns_command {
|
|||
|
||||
my $command;
|
||||
|
||||
if ($ENV{'USE_VALGRIND'}) {
|
||||
$command = "valgrind -q --gen-suppressions=all --num-callers=48 --fullpath-after= --log-file=named-$server-valgrind-%p.log ";
|
||||
|
||||
if ($ENV{'USE_VALGRIND'} eq 'helgrind') {
|
||||
$command .= "--tool=helgrind ";
|
||||
} else {
|
||||
$command .= "--tool=memcheck --track-origins=yes --leak-check=full ";
|
||||
}
|
||||
|
||||
$command .= "$NAMED -m none ";
|
||||
if ($taskset) {
|
||||
$command = "taskset $taskset $NAMED ";
|
||||
} elsif ($ENV{'USE_RR'}) {
|
||||
$ENV{'_RR_TRACE_DIR'} = ".";
|
||||
$command = "rr record --chaos $NAMED ";
|
||||
} else {
|
||||
if ($taskset) {
|
||||
$command = "taskset $taskset $NAMED ";
|
||||
} else {
|
||||
$command = "$NAMED ";
|
||||
}
|
||||
$command = "$NAMED ";
|
||||
}
|
||||
|
||||
my $args_file = $testdir . "/" . $server . "/" . "named.args";
|
||||
|
|
|
|||
Loading…
Reference in a new issue