Skip to content

Commit 8e4ec3d

Browse files
committed
refperf: Rename RCU_REF_PERF_TEST to RCU_REF_SCALE_TEST
The old Kconfig option name is all too easy to conflate with the unrelated "perf" feature, so this commit renames RCU_REF_PERF_TEST to RCU_REF_SCALE_TEST. Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent c7dcf81 commit 8e4ec3d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

kernel/rcu/Kconfig.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ config RCU_TORTURE_TEST
6161
Say M if you want the RCU torture tests to build as a module.
6262
Say N if you are unsure.
6363

64-
config RCU_REF_PERF_TEST
65-
tristate "Performance tests for read-side synchronization (RCU and others)"
64+
config RCU_REF_SCALE_TEST
65+
tristate "Scalability tests for read-side synchronization (RCU and others)"
6666
depends on DEBUG_KERNEL
6767
select TORTURE_TEST
6868
select SRCU

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_PERF_TEST) += refperf.o
15+
obj-$(CONFIG_RCU_REF_SCALE_TEST) += refperf.o
1616
obj-$(CONFIG_TREE_RCU) += tree.o
1717
obj-$(CONFIG_TINY_RCU) += tiny.o
1818
obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o

kernel/rcu/refperf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0+
22
//
3-
// Performance test comparing RCU vs other mechanisms
3+
// Scalability test comparing RCU vs other mechanisms
44
// for acquiring references on objects.
55
//
66
// Copyright (C) Google, 2020.
@@ -59,7 +59,7 @@ MODULE_PARM_DESC(perf_type, "Type of test (rcu, srcu, refcnt, rwsem, rwlock.");
5959
torture_param(int, verbose, 0, "Enable verbose debugging printk()s");
6060

6161
// Wait until there are multiple CPUs before starting test.
62-
torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_PERF_TEST) ? 10 : 0,
62+
torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_SCALE_TEST) ? 10 : 0,
6363
"Holdoff time before test start (s)");
6464
// Number of loops per experiment, all readers execute operations concurrently.
6565
torture_param(long, loops, 10000, "Number of loops per experiment.");
@@ -656,7 +656,7 @@ ref_perf_init(void)
656656
for (i = 0; i < ARRAY_SIZE(perf_ops); i++)
657657
pr_cont(" %s", perf_ops[i]->name);
658658
pr_cont("\n");
659-
WARN_ON(!IS_MODULE(CONFIG_RCU_REF_PERF_TEST));
659+
WARN_ON(!IS_MODULE(CONFIG_RCU_REF_SCALE_TEST));
660660
firsterr = -EINVAL;
661661
cur_ops = NULL;
662662
goto unwind;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CONFIG_RCU_REF_PERF_TEST=y
1+
CONFIG_RCU_REF_SCALE_TEST=y
22
CONFIG_PRINTK_TIME=y

0 commit comments

Comments
 (0)