| @@ -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 mechanisms | 3 | // 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 |
| 59 | torture_param(int, verbose, 0, "Enable verbose debugging printk()s"); | 59 | torture_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. |
| 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, |
| 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. |
| 65 | torture_param(long, loops, 10000, "Number of loops per experiment."); | 65 | torture_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; |