diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2020-10-06 15:07:06 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2020-10-06 15:07:06 +0300 |
commit | 2b832151ad66556cb07ed232b139411f4b6defe3 (patch) | |
tree | c30004c9adcacbcbfb28c1c4e2f665969537aaf0 /mysql-test/mysql-test-run.pl | |
parent | 5933081d8b05893b8987c0c89237b4764a2f22e0 (diff) | |
download | mariadb-git-2b832151ad66556cb07ed232b139411f4b6defe3.tar.gz |
MDEV-23787 mtr --rr fixes
1. rr record -h randomizes number of processors. Disable THREAD_POOL_SIZE check.
2. check for kernel.perf_event_paranoid for user-friendly error message.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 178d65aca41..30cc833ad99 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1820,6 +1820,16 @@ sub command_line_setup { $opt_shutdown_timeout= 24 * 60; # One day for PID file creation (this is given in seconds not minutes) $opt_start_timeout= 24 * 60 * 60; + if ($opt_rr && open(my $fh, '<', '/proc/sys/kernel/perf_event_paranoid')) + { + my $perf_event_paranoid= <$fh>; + close $fh; + chomp $perf_event_paranoid; + if ($perf_event_paranoid == 0) + { + mtr_error("rr requires kernel.perf_event_paranoid set to 1"); + } + } } # -------------------------------------------------------------------------- |