summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-07-08 17:34:07 -0700
committerPaul E. McKenney <paulmck@kernel.org>2026-08-14 14:59:20 -0700
commit86fa5387b473c160c26b781dff55014c4e1b3db0 (patch)
tree24c51c64d1789d6179ac13183cce4ce6883b603c /include
parent560b35bd7c8aa1b7cd20adf28c401e93da567400 (diff)
downloadlinux-86fa5387b473c160c26b781dff55014c4e1b3db0.tar.gz
linux-86fa5387b473c160c26b781dff55014c4e1b3db0.zip
rcutorture: Make RCU Tasks Trace track Reader Batches
This commit adds the ->get_sp_seq and ->gp_diff fields to the tasks_tracing_ops structure so that RCU Tasks Trace rcutorture runs will track Reader Batch. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/rcupdate_trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rcupdate_trace.h b/include/linux/rcupdate_trace.h
index cee89e51e45c..f2c4173bf14f 100644
--- a/include/linux/rcupdate_trace.h
+++ b/include/linux/rcupdate_trace.h
@@ -198,10 +198,13 @@ static inline void rcu_tasks_trace_expedite_current(void)
srcu_expedite_current(&rcu_tasks_trace_srcu_struct);
}
+unsigned long rcu_tasks_trace_batches_completed(void);
+
// Placeholders to enable stepwise transition.
void __init rcu_tasks_trace_suppress_unused(void);
#else
+static inline unsigned long rcu_tasks_trace_batches_completed(void) { return 0; }
/*
* The BPF JIT forms these addresses even when it doesn't call these
* functions, so provide definitions that result in runtime errors.