summaryrefslogtreecommitdiffstats
path: root/include/linux/rcupdate_trace.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-05-17 05:01:28 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-07-14 15:01:49 -0700
commit5f8e3202696f5e94d3fc54cfed75d270ae843ee9 (patch)
treea902e3236e84fa24cc07c15b26196d4635adbf58 /include/linux/rcupdate_trace.h
parentbb7bad3dae42b669cfe471716f0073ac611e7f75 (diff)
downloadlinux-5f8e3202696f5e94d3fc54cfed75d270ae843ee9.tar.gz
linux-5f8e3202696f5e94d3fc54cfed75d270ae843ee9.tar.bz2
linux-5f8e3202696f5e94d3fc54cfed75d270ae843ee9.zip
rcuscale: Measure grace-period kthread CPU time
This commit adds the ability to output the CPU time consumed by the grace-period kthread for the RCU variant under test. The CPU time is whatever is in the designated task's current->stime field, and thus is controlled by whatever CPU-time accounting scheme is in effect. This output appears in microseconds as follows on the console: rcu_scale: Grace-period kthread CPU time: 42367.037 [ paulmck: Apply feedback from Stephen Rothwell and kernel test robot. ] Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Tested-by: Yujie Liu <yujie.liu@intel.com>
Diffstat (limited to 'include/linux/rcupdate_trace.h')
-rw-r--r--include/linux/rcupdate_trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rcupdate_trace.h b/include/linux/rcupdate_trace.h
index 9bc8cbb33340..eda493200663 100644
--- a/include/linux/rcupdate_trace.h
+++ b/include/linux/rcupdate_trace.h
@@ -87,6 +87,7 @@ static inline void rcu_read_unlock_trace(void)
void call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func);
void synchronize_rcu_tasks_trace(void);
void rcu_barrier_tasks_trace(void);
+struct task_struct *get_rcu_tasks_trace_gp_kthread(void);
#else
/*
* The BPF JIT forms these addresses even when it doesn't call these