summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-05-26 20:57:34 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 22:00:45 +0300
commitb864f89ff61492f56b4e8c6713a5efec6540a0e2 (patch)
treefc58c549c9878565559b223f596ac9289fdb7423 /tools/perf/scripts/python/export-to-postgresql.py
parent2990750bceb05c3cdeae3a6d2683cbc4ae4de15e (diff)
downloadlinux-b864f89ff61492f56b4e8c6713a5efec6540a0e2.tar.xz
refperf: Tune reader measurement interval
This commit moves a printk() out of the measurement interval, converts a atomic_dec()/atomic_read() pair to atomic_dec_and_test(), and adds a smp_mb__before_atomic() to avoid potential wake/wait hangs. These changes have the added benefit of reducing the number of loops required for amortizing loop overhead for CONFIG_PREEMPT=n RCU measurements from 1,000,000 to 10,000. This reduction in turn shortens the test, reducing the probability of interference. Cc: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions