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

Unified · Split

4 files
  1. kernel/rcu/Kconfig.debug +2 −2
  2. kernel/rcu/Makefile +1 −1
  3. kernel/rcu/refperf.c +3 −3
  4. tools/testing/selftests/rcutorture/configs/refperf/CFcommon +1 −1
kernel/rcu/Kconfig.debug+2−2
@@ -61,8 +61,8 @@ config RCU_TORTURE_TEST · 60 unmodified lines
61 Say M if you want the RCU torture tests to build as a module.61 Say M if you want the RCU torture tests to build as a module.
62 Say N if you are unsure.62 Say N if you are unsure.
63 63
64config RCU_REF_PERF_TEST64config RCU_REF_SCALE_TEST
65 tristate "Performance tests for read-side synchronization (RCU and others)"65 tristate "Scalability tests for read-side synchronization (RCU and others)"
66 depends on DEBUG_KERNEL66 depends on DEBUG_KERNEL
67 select TORTURE_TEST67 select TORTURE_TEST
68 select SRCU68 select SRCU
kernel/rcu/Makefile+1−1
@@ -12,7 +12,7 @@ obj-$(CONFIG_TREE_SRCU) += srcutree.o · 11 unmodified lines
12obj-$(CONFIG_TINY_SRCU) += srcutiny.o12obj-$(CONFIG_TINY_SRCU) += srcutiny.o
13obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o13obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
14obj-$(CONFIG_RCU_PERF_TEST) += rcuperf.o14obj-$(CONFIG_RCU_PERF_TEST) += rcuperf.o
15obj-$(CONFIG_RCU_REF_PERF_TEST) += refperf.o15obj-$(CONFIG_RCU_REF_SCALE_TEST) += refperf.o
16obj-$(CONFIG_TREE_RCU) += tree.o16obj-$(CONFIG_TREE_RCU) += tree.o
17obj-$(CONFIG_TINY_RCU) += tiny.o17obj-$(CONFIG_TINY_RCU) += tiny.o
18obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o18obj-$(CONFIG_RCU_NEED_SEGCBLIST) += rcu_segcblist.o
kernel/rcu/refperf.c+3−3
@@ -1,6 +1,6 @@
1// SPDX-License-Identifier: GPL-2.0+1// SPDX-License-Identifier: GPL-2.0+
2//2//
3// Performance test comparing RCU vs other mechanisms3// Scalability test comparing RCU vs other mechanisms
4// for acquiring references on objects.4// for acquiring references on objects.
5//5//
6// Copyright (C) Google, 2020.6// Copyright (C) Google, 2020.
@@ -59,7 +59,7 @@ MODULE_PARM_DESC(perf_type, "Type of test (rcu, srcu, refcnt, rwsem, rwlock."); · 52 unmodified lines
59torture_param(int, verbose, 0, "Enable verbose debugging printk()s");59torture_param(int, verbose, 0, "Enable verbose debugging printk()s");
60 60
61// Wait until there are multiple CPUs before starting test.61// Wait until there are multiple CPUs before starting test.
62torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_PERF_TEST) ? 10 : 0,62torture_param(int, holdoff, IS_BUILTIN(CONFIG_RCU_REF_SCALE_TEST) ? 10 : 0,
63 "Holdoff time before test start (s)");63 "Holdoff time before test start (s)");
64// Number of loops per experiment, all readers execute operations concurrently.64// Number of loops per experiment, all readers execute operations concurrently.
65torture_param(long, loops, 10000, "Number of loops per experiment.");65torture_param(long, loops, 10000, "Number of loops per experiment.");
@@ -656,7 +656,7 @@ ref_perf_init(void) · 590 unmodified lines
656 for (i = 0; i < ARRAY_SIZE(perf_ops); i++)656 for (i = 0; i < ARRAY_SIZE(perf_ops); i++)
657 pr_cont(" %s", perf_ops[i]->name);657 pr_cont(" %s", perf_ops[i]->name);
658 pr_cont("\n");658 pr_cont("\n");
659 WARN_ON(!IS_MODULE(CONFIG_RCU_REF_PERF_TEST));659 WARN_ON(!IS_MODULE(CONFIG_RCU_REF_SCALE_TEST));
660 firsterr = -EINVAL;660 firsterr = -EINVAL;
661 cur_ops = NULL;661 cur_ops = NULL;
662 goto unwind;662 goto unwind;
tools/testing/selftests/rcutorture/configs/refperf/CFcommon+1−1
@@ -1,2 +1,2 @@
1CONFIG_RCU_REF_PERF_TEST=y1CONFIG_RCU_REF_SCALE_TEST=y
2CONFIG_PRINTK_TIME=y2CONFIG_PRINTK_TIME=y

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