rcutorture.c (3b6e1dd42317ec366dab3205f99280e2ab1ad85a) | rcutorture.c (4c3f7b0e1e880e892d4bc4f50bf627b251b6e2cc) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Read-Copy Update module-based torture test facility 4 * 5 * Copyright (C) IBM Corporation, 2005, 2006 6 * 7 * Authors: Paul E. McKenney <paulmck@linux.ibm.com> 8 * Josh Triplett <josh@joshtriplett.org> --- 819 unchanged lines hidden (view full) --- 828 829#else // #ifdef CONFIG_TASKS_RCU 830 831#define TASKS_OPS 832 833#endif // #else #ifdef CONFIG_TASKS_RCU 834 835 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Read-Copy Update module-based torture test facility 4 * 5 * Copyright (C) IBM Corporation, 2005, 2006 6 * 7 * Authors: Paul E. McKenney <paulmck@linux.ibm.com> 8 * Josh Triplett <josh@joshtriplett.org> --- 819 unchanged lines hidden (view full) --- 828 829#else // #ifdef CONFIG_TASKS_RCU 830 831#define TASKS_OPS 832 833#endif // #else #ifdef CONFIG_TASKS_RCU 834 835 |
836#ifdef CONFIG_TASKS_RUDE_RCU 837 |
|
836/* 837 * Definitions for rude RCU-tasks torture testing. 838 */ 839 840static void rcu_tasks_rude_torture_deferred_free(struct rcu_torture *p) 841{ 842 call_rcu_tasks_rude(&p->rtort_rcu, rcu_torture_cb); 843} --- 13 unchanged lines hidden (view full) --- 857 .gp_kthread_dbg = show_rcu_tasks_rude_gp_kthread, 858 .cbflood_max = 50000, 859 .fqs = NULL, 860 .stats = NULL, 861 .irq_capable = 1, 862 .name = "tasks-rude" 863}; 864 | 838/* 839 * Definitions for rude RCU-tasks torture testing. 840 */ 841 842static void rcu_tasks_rude_torture_deferred_free(struct rcu_torture *p) 843{ 844 call_rcu_tasks_rude(&p->rtort_rcu, rcu_torture_cb); 845} --- 13 unchanged lines hidden (view full) --- 859 .gp_kthread_dbg = show_rcu_tasks_rude_gp_kthread, 860 .cbflood_max = 50000, 861 .fqs = NULL, 862 .stats = NULL, 863 .irq_capable = 1, 864 .name = "tasks-rude" 865}; 866 |
867#define TASKS_RUDE_OPS &tasks_rude_ops, 868 869#else // #ifdef CONFIG_TASKS_RUDE_RCU 870 871#define TASKS_RUDE_OPS 872 873#endif // #else #ifdef CONFIG_TASKS_RUDE_RCU 874 875 |
|
865#ifdef CONFIG_TASKS_TRACE_RCU 866 867/* 868 * Definitions for tracing RCU-tasks torture testing. 869 */ 870 871static int tasks_tracing_torture_read_lock(void) 872{ --- 2241 unchanged lines hidden (view full) --- 3114{ 3115 long i; 3116 int cpu; 3117 int firsterr = 0; 3118 int flags = 0; 3119 unsigned long gp_seq = 0; 3120 static struct rcu_torture_ops *torture_ops[] = { 3121 &rcu_ops, &rcu_busted_ops, &srcu_ops, &srcud_ops, &busted_srcud_ops, | 876#ifdef CONFIG_TASKS_TRACE_RCU 877 878/* 879 * Definitions for tracing RCU-tasks torture testing. 880 */ 881 882static int tasks_tracing_torture_read_lock(void) 883{ --- 2241 unchanged lines hidden (view full) --- 3125{ 3126 long i; 3127 int cpu; 3128 int firsterr = 0; 3129 int flags = 0; 3130 unsigned long gp_seq = 0; 3131 static struct rcu_torture_ops *torture_ops[] = { 3132 &rcu_ops, &rcu_busted_ops, &srcu_ops, &srcud_ops, &busted_srcud_ops, |
3122 TASKS_OPS &tasks_rude_ops, TASKS_TRACING_OPS | 3133 TASKS_OPS TASKS_RUDE_OPS TASKS_TRACING_OPS |
3123 &trivial_ops, 3124 }; 3125 3126 if (!torture_init_begin(torture_type, verbose)) 3127 return -EBUSY; 3128 3129 /* Process args and tell the world that the torturer is on the job. */ 3130 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { --- 228 unchanged lines hidden --- | 3134 &trivial_ops, 3135 }; 3136 3137 if (!torture_init_begin(torture_type, verbose)) 3138 return -EBUSY; 3139 3140 /* Process args and tell the world that the torturer is on the job. */ 3141 for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { --- 228 unchanged lines hidden --- |