| @@ -305,6 +305,8 @@ static struct rcu_scale_ops tasks_ops = { · 304 unmodified lines |
| 305 | | 305 | |
| 306 | #endif // #else // #ifdef CONFIG_TASKS_RCU | 306 | #endif // #else // #ifdef CONFIG_TASKS_RCU |
| 307 | | 307 | |
| | 308 | #ifdef CONFIG_TASKS_TRACE_RCU |
| | 309 | |
| 308 | /* | 310 | /* |
| 309 | * Definitions for RCU-tasks-trace scalability testing. | 311 | * Definitions for RCU-tasks-trace scalability testing. |
| 310 | */ | 312 | */ |
| @@ -334,6 +336,14 @@ static struct rcu_scale_ops tasks_tracing_ops = { · 23 unmodified lines |
| 334 | .name = "tasks-tracing" | 336 | .name = "tasks-tracing" |
| 335 | }; | 337 | }; |
| 336 | | 338 | |
| | 339 | #define TASKS_TRACING_OPS &tasks_tracing_ops, |
| | 340 | |
| | 341 | #else // #ifdef CONFIG_TASKS_TRACE_RCU |
| | 342 | |
| | 343 | #define TASKS_TRACING_OPS |
| | 344 | |
| | 345 | #endif // #else // #ifdef CONFIG_TASKS_TRACE_RCU |
| | 346 | |
| 337 | static unsigned long rcuscale_seq_diff(unsigned long new, unsigned long old) | 347 | static unsigned long rcuscale_seq_diff(unsigned long new, unsigned long old) |
| 338 | { | 348 | { |
| 339 | if (!cur_ops->gp_diff) | 349 | if (!cur_ops->gp_diff) |
| @@ -807,7 +817,7 @@ rcu_scale_init(void) · 467 unmodified lines |
| 807 | long i; | 817 | long i; |
| 808 | int firsterr = 0; | 818 | int firsterr = 0; |
| 809 | static struct rcu_scale_ops *scale_ops[] = { | 819 | static struct rcu_scale_ops *scale_ops[] = { |
| 810 | &rcu_ops, &srcu_ops, &srcud_ops, TASKS_OPS &tasks_tracing_ops | 820 | &rcu_ops, &srcu_ops, &srcud_ops, TASKS_OPS TASKS_TRACING_OPS |
| 811 | }; | 821 | }; |
| 812 | | 822 | |
| 813 | if (!torture_init_begin(scale_type, verbose)) | 823 | if (!torture_init_begin(scale_type, verbose)) |