History

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.

Paul E. McKenney committed 6 years ago

Commit 8e4ec3d1 parent c7dcf814 files · +7 −7Browse files

Showing the changes to kernel (3 of 4 files). Show all

Unified · Split

3 files
  1. kernel/rcu/Kconfig.debug +2 −2
  2. kernel/rcu/Makefile +1 −1
  3. kernel/rcu/refperf.c +3 −3
kernel/rcu/Kconfig.debug+2−2
@@ -61,8 +61,8 @@ config RCU_TORTURE_TEST · 60 unmodified lines
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+1−1
@@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o · 11 unmodified lines
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+3−3
@@ -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."); · 52 unmodified lines
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) · 590 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t