]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
refperf: Rename RCU_REF_PERF_TEST to RCU_REF_SCALE_TEST
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 17 Jun 2020 18:33:54 +0000 (11:33 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:46 +0000 (12:00 -0700)
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 <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/Kconfig.debug
kernel/rcu/Makefile
kernel/rcu/refperf.c
tools/testing/selftests/rcutorture/configs/refperf/CFcommon

index 858765b7f644c61e5d501cc5132812ea70d877ee..3cf6132a4bb9f5d251771045a5a379d0acecf935 100644 (file)
@@ -61,8 +61,8 @@ config RCU_TORTURE_TEST
          Say M if you want the RCU torture tests to build as a module.
          Say N if you are unsure.
 
-config RCU_REF_PERF_TEST
-       tristate "Performance tests for read-side synchronization (RCU and others)"
+config RCU_REF_SCALE_TEST
+       tristate "Scalability tests for read-side synchronization (RCU and others)"
        depends on DEBUG_KERNEL
        select TORTURE_TEST
        select SRCU
index ba7d82609cbe15e365951156976c5fd2b2ba790a..45d562de279a3f71011e78145d51a44c84d68c11 100644 (file)
@@ -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_PERF_TEST) += refperf.o
+obj-$(CONFIG_RCU_REF_SCALE_TEST) += refperf.o
 obj-$(CONFIG_TREE_RCU) += tree.o
 obj-$(CONFIG_TINY_RCU) += tiny.o
 obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o
index 2bfdcdcb6bd11c3e87061c6b958f7e1a0da6b90a..7c980573acbe6ced2d9a07df51b63581f4321285 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 //
-// Performance test comparing RCU vs other mechanisms
+// Scalability test comparing RCU vs other mechanisms
 // for acquiring references on objects.
 //
 // Copyright (C) Google, 2020.
@@ -59,7 +59,7 @@ MODULE_PARM_DESC(perf_type, "Type of test (rcu, srcu, refcnt, rwsem, rwlock.");
 torture_param(int, verbose, 0, "Enable verbose debugging printk()s");
 
 // Wait until there are multiple CPUs before starting test.
-torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_PERF_TEST) ? 10 : 0,
+torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_SCALE_TEST) ? 10 : 0,
              "Holdoff time before test start (s)");
 // Number of loops per experiment, all readers execute operations concurrently.
 torture_param(long, loops, 10000, "Number of loops per experiment.");
@@ -656,7 +656,7 @@ ref_perf_init(void)
                for (i = 0; i < ARRAY_SIZE(perf_ops); i++)
                        pr_cont(" %s", perf_ops[i]->name);
                pr_cont("\n");
-               WARN_ON(!IS_MODULE(CONFIG_RCU_REF_PERF_TEST));
+               WARN_ON(!IS_MODULE(CONFIG_RCU_REF_SCALE_TEST));
                firsterr = -EINVAL;
                cur_ops = NULL;
                goto unwind;
index 8ba5ba2075034a4a248f2b15ea363582e0865f33..a98b58b54bb11d5fe2297bb6e96fd6bd39a2eb28 100644 (file)
@@ -1,2 +1,2 @@
-CONFIG_RCU_REF_PERF_TEST=y
+CONFIG_RCU_REF_SCALE_TEST=y
 CONFIG_PRINTK_TIME=y