Commit 1fbeb3a8 authored by Paul E. McKenney's avatar Paul E. McKenney

refperf: Rename refperf.c to refscale.c and change internal names

This commit further avoids conflation of refperf with the kernel's perf
feature by renaming kernel/rcu/refperf.c to kernel/rcu/refscale.c,
and also by similarly renaming the functions and variables inside
this file.  This has the side effect of changing the names of the
kernel boot parameters, so kernel-parameters.txt and ver_functions.sh
are also updated.

The rcutorture --torture type remains refperf, and this will be
addressed in a separate commit.
Reported-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 8e4ec3d0
...@@ -4407,13 +4407,13 @@ ...@@ -4407,13 +4407,13 @@
reboot_cpu is s[mp]#### with #### being the processor reboot_cpu is s[mp]#### with #### being the processor
to be used for rebooting. to be used for rebooting.
refperf.holdoff= [KNL] refscale.holdoff= [KNL]
Set test-start holdoff period. The purpose of Set test-start holdoff period. The purpose of
this parameter is to delay the start of the this parameter is to delay the start of the
test until boot completes in order to avoid test until boot completes in order to avoid
interference. interference.
refperf.loops= [KNL] refscale.loops= [KNL]
Set the number of loops over the synchronization Set the number of loops over the synchronization
primitive under test. Increasing this number primitive under test. Increasing this number
reduces noise due to loop start/end overhead, reduces noise due to loop start/end overhead,
...@@ -4421,26 +4421,29 @@ ...@@ -4421,26 +4421,29 @@
noise to a handful of picoseconds on ca. 2020 noise to a handful of picoseconds on ca. 2020
x86 laptops. x86 laptops.
refperf.nreaders= [KNL] refscale.nreaders= [KNL]
Set number of readers. The default value of -1 Set number of readers. The default value of -1
selects N, where N is roughly 75% of the number selects N, where N is roughly 75% of the number
of CPUs. A value of zero is an interesting choice. of CPUs. A value of zero is an interesting choice.
refperf.nruns= [KNL] refscale.nruns= [KNL]
Set number of runs, each of which is dumped onto Set number of runs, each of which is dumped onto
the console log. the console log.
refperf.readdelay= [KNL] refscale.readdelay= [KNL]
Set the read-side critical-section duration, Set the read-side critical-section duration,
measured in microseconds. measured in microseconds.
refperf.shutdown= [KNL] refscale.scale_type= [KNL]
Specify the read-protection implementation to test.
refscale.shutdown= [KNL]
Shut down the system at the end of the performance Shut down the system at the end of the performance
test. This defaults to 1 (shut it down) when test. This defaults to 1 (shut it down) when
rcuperf is built into the kernel and to 0 (leave rcuperf is built into the kernel and to 0 (leave
it running) when rcuperf is built as a module. it running) when rcuperf is built as a module.
refperf.verbose= [KNL] refscale.verbose= [KNL]
Enable additional printk() statements. Enable additional printk() statements.
relax_domain_level= relax_domain_level=
......
...@@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o ...@@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o
obj-$(CONFIG_TINY_SRCU) += srcutiny.o obj-$(CONFIG_TINY_SRCU) += srcutiny.o
obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
obj-$(CONFIG_RCU_PERF_TEST) += rcuperf.o obj-$(CONFIG_RCU_PERF_TEST) += rcuperf.o
obj-$(CONFIG_RCU_REF_SCALE_TEST) += refperf.o obj-$(CONFIG_RCU_REF_SCALE_TEST) += refscale.o
obj-$(CONFIG_TREE_RCU) += tree.o obj-$(CONFIG_TREE_RCU) += tree.o
obj-$(CONFIG_TINY_RCU) += tiny.o obj-$(CONFIG_TINY_RCU) += tiny.o
obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
# #
# Adds per-version torture-module parameters to kernels supporting them. # Adds per-version torture-module parameters to kernels supporting them.
per_version_boot_params () { per_version_boot_params () {
echo $1 refperf.shutdown=1 \ echo $1 refscale.shutdown=1 \
refperf.verbose=1 refscale.verbose=1
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment