Skip to content

Commit 1fbeb3a

Browse files
committed
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: Ingo Molnar <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 8e4ec3d commit 1fbeb3a

File tree

4 files changed

+104
-101
lines changed

4 files changed

+104
-101
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4407,40 +4407,43 @@
44074407
reboot_cpu is s[mp]#### with #### being the processor
44084408
to be used for rebooting.
44094409

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

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

4424-
refperf.nreaders= [KNL]
4424+
refscale.nreaders= [KNL]
44254425
Set number of readers. The default value of -1
44264426
selects N, where N is roughly 75% of the number
44274427
of CPUs. A value of zero is an interesting choice.
44284428

4429-
refperf.nruns= [KNL]
4429+
refscale.nruns= [KNL]
44304430
Set number of runs, each of which is dumped onto
44314431
the console log.
44324432

4433-
refperf.readdelay= [KNL]
4433+
refscale.readdelay= [KNL]
44344434
Set the read-side critical-section duration,
44354435
measured in microseconds.
44364436

4437-
refperf.shutdown= [KNL]
4437+
refscale.scale_type= [KNL]
4438+
Specify the read-protection implementation to test.
4439+
4440+
refscale.shutdown= [KNL]
44384441
Shut down the system at the end of the performance
44394442
test. This defaults to 1 (shut it down) when
44404443
rcuperf is built into the kernel and to 0 (leave
44414444
it running) when rcuperf is built as a module.
44424445

4443-
refperf.verbose= [KNL]
4446+
refscale.verbose= [KNL]
44444447
Enable additional printk() statements.
44454448

44464449
relax_domain_level=

kernel/rcu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o
1212
obj-$(CONFIG_TINY_SRCU) += srcutiny.o
1313
obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
1414
obj-$(CONFIG_RCU_PERF_TEST) += rcuperf.o
15-
obj-$(CONFIG_RCU_REF_SCALE_TEST) += refperf.o
15+
obj-$(CONFIG_RCU_REF_SCALE_TEST) += refscale.o
1616
obj-$(CONFIG_TREE_RCU) += tree.o
1717
obj-$(CONFIG_TINY_RCU) += tiny.o
1818
obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o

0 commit comments

Comments
 (0)