Skip to content

Commit

Permalink
refperf: Rename refperf.c to refscale.c and change internal names
Browse files Browse the repository at this point in the history
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: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
  • Loading branch information
Paul E. McKenney committed Jun 29, 2020
1 parent 8e4ec3d commit 1fbeb3a
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 101 deletions.
17 changes: 10 additions & 7 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4407,40 +4407,43 @@
reboot_cpu is s[mp]#### with #### being the processor
to be used for rebooting.

refperf.holdoff= [KNL]
refscale.holdoff= [KNL]
Set test-start holdoff period. The purpose of
this parameter is to delay the start of the
test until boot completes in order to avoid
interference.

refperf.loops= [KNL]
refscale.loops= [KNL]
Set the number of loops over the synchronization
primitive under test. Increasing this number
reduces noise due to loop start/end overhead,
but the default has already reduced the per-pass
noise to a handful of picoseconds on ca. 2020
x86 laptops.

refperf.nreaders= [KNL]
refscale.nreaders= [KNL]
Set number of readers. The default value of -1
selects N, where N is roughly 75% of the number
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
the console log.

refperf.readdelay= [KNL]
refscale.readdelay= [KNL]
Set the read-side critical-section duration,
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
test. This defaults to 1 (shut it down) when
rcuperf is built into the kernel and to 0 (leave
it running) when rcuperf is built as a module.

refperf.verbose= [KNL]
refscale.verbose= [KNL]
Enable additional printk() statements.

relax_domain_level=
Expand Down
2 changes: 1 addition & 1 deletion kernel/rcu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o
obj-$(CONFIG_TINY_SRCU) += srcutiny.o
obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.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_TINY_RCU) += tiny.o
obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o
Loading

0 comments on commit 1fbeb3a

Please sign in to comment.