public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/34] Implement RCU Tasks Trace in terms of SRCU-fast and optimize
@ 2025-09-23 14:20 Paul E. McKenney
  2025-09-23 14:20 ` [PATCH 01/34] rcu: Re-implement RCU Tasks Trace in terms of SRCU-fast Paul E. McKenney
                   ` (34 more replies)
  0 siblings, 35 replies; 48+ messages in thread
From: Paul E. McKenney @ 2025-09-23 14:20 UTC (permalink / raw)
  To: rcu; +Cc: linux-kernel, kernel-team, rostedt, andrii, ast, peterz, bpf

Hello!

This series re-implements RCU Tasks Trace in terms of SRCU-fast,
reducing the size of the Linux-kernel RCU implementation by several
hundred lines of code.  It also removes a conditional branch from the
srcu_read_lock_fast() implementation in order to make SRCU-fast a
bit more fastpath-friendly.  The patches are as follows:

1.	Re-implement RCU Tasks Trace in terms of SRCU-fast.

2.	Remove unused ->trc_ipi_to_cpu and ->trc_blkd_cpu from
	task_struct.

3.	Remove ->trc_blkd_node from task_struct.

4.	Remove ->trc_holdout_list from task_struct.

5.	Remove rcu_tasks_trace_qs() and the functions that it calls.

6.	context_tracking: Remove
	rcu_task_trace_heavyweight_{enter,exit}().

7.	Remove ->trc_reader_special from task_struct.

8.	Remove now-empty RCU Tasks Trace functions and calls to them.

9.	Remove unused rcu_tasks_trace_lazy_ms and trc_stall_chk_rdr
	struct.

10.	Remove now-empty show_rcu_tasks_trace_gp_kthread() function.

11.	Remove now-empty rcu_tasks_trace_get_gp_data() function.

12.	Remove now-empty rcu_tasks_trace_torture_stats_print() function.

13.	Remove now-empty get_rcu_tasks_trace_gp_kthread() function.

14.	Move rcu_tasks_trace_srcu_struct out of #ifdef
	CONFIG_TASKS_RCU_GENERIC.

15.	Add noinstr-fast rcu_read_{,un}lock_tasks_trace() APIs.

16.	Remove now-unused rcu_task_ipi_delay and TASKS_TRACE_RCU_READ_MB.

17.	Create a DEFINE_SRCU_FAST().

18.	Use smp_mb() only when necessary in RCU Tasks Trace readers.

19.	Update Requirements.rst for RCU Tasks Trace.

20.	Deprecate rcu_read_{,un}lock_trace().

21.	Mark diagnostic functions as notrace.

22.	Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast.

23.	Create an srcu_expedite_current() function.

24.	Test srcu_expedite_current().

25.	Create an rcu_tasks_trace_expedite_current() function.

26.	Test rcu_tasks_trace_expedite_current().

27.	Make DEFINE_SRCU_FAST() available to modules.

28.	Make SRCU-fast available to heap srcu_struct structures.

29.	Make grace-period determination use ssp->srcu_reader_flavor.

30.	Exercise DEFINE_STATIC_SRCU_FAST() and init_srcu_struct_fast().

31.	Exercise DEFINE_STATIC_SRCU_FAST() and init_srcu_struct_fast().

32.	Require special srcu_struct define/init for SRCU-fast readers.

33.	Make SRCU-fast readers enforce use of SRCU-fast definition/init.

34.	Update for SRCU-fast definitions and initialization.

						Thanx, Paul

------------------------------------------------------------------------

 Documentation/RCU/Design/Requirements/Requirements.rst   |   33 
 Documentation/admin-guide/kernel-parameters.txt          |    7 
 b/Documentation/RCU/Design/Requirements/Requirements.rst |   12 
 b/Documentation/RCU/checklist.rst                        |   12 
 b/Documentation/RCU/whatisRCU.rst                        |    3 
 b/Documentation/admin-guide/kernel-parameters.txt        |    8 
 b/include/linux/notifier.h                               |    2 
 b/include/linux/rcupdate.h                               |   26 
 b/include/linux/rcupdate_trace.h                         |  107 +-
 b/include/linux/sched.h                                  |    1 
 b/include/linux/srcu.h                                   |   16 
 b/include/linux/srcutiny.h                               |    1 
 b/include/linux/srcutree.h                               |   20 
 b/include/linux/tracepoint.h                             |   45 -
 b/include/trace/perf.h                                   |    4 
 b/include/trace/trace_events.h                           |    4 
 b/init/init_task.c                                       |    1 
 b/kernel/context_tracking.c                              |   20 
 b/kernel/fork.c                                          |    1 
 b/kernel/rcu/Kconfig                                     |    2 
 b/kernel/rcu/rcu.h                                       |    5 
 b/kernel/rcu/rcuscale.c                                  |    6 
 b/kernel/rcu/rcutorture.c                                |    1 
 b/kernel/rcu/refscale.c                                  |    9 
 b/kernel/rcu/srcutiny.c                                  |   13 
 b/kernel/rcu/srcutree.c                                  |   58 +
 b/kernel/rcu/tasks.h                                     |  617 ---------------
 b/kernel/rcu/tree.c                                      |    2 
 b/kernel/rcu/update.c                                    |    8 
 b/kernel/tracepoint.c                                    |   21 
 b/scripts/checkpatch.pl                                  |    2 
 b/tools/testing/selftests/rcutorture/configs/rcu/TRACE01 |    1 
 b/tools/testing/selftests/rcutorture/configs/rcu/TRACE02 |    1 
 include/linux/rcupdate.h                                 |    5 
 include/linux/rcupdate_trace.h                           |   85 +-
 include/linux/sched.h                                    |    5 
 include/linux/srcu.h                                     |   40 
 include/linux/srcutiny.h                                 |   16 
 include/linux/srcutree.h                                 |   48 -
 init/init_task.c                                         |    2 
 kernel/fork.c                                            |    2 
 kernel/rcu/Kconfig                                       |   41 
 kernel/rcu/rcu.h                                         |    4 
 kernel/rcu/rcuscale.c                                    |    1 
 kernel/rcu/rcutorture.c                                  |   33 
 kernel/rcu/srcutree.c                                    |   39 
 kernel/rcu/tasks.h                                       |  129 ---
 47 files changed, 529 insertions(+), 990 deletions(-)

^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2025-09-25 18:58 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 14:20 [PATCH 0/34] Implement RCU Tasks Trace in terms of SRCU-fast and optimize Paul E. McKenney
2025-09-23 14:20 ` [PATCH 01/34] rcu: Re-implement RCU Tasks Trace in terms of SRCU-fast Paul E. McKenney
2025-09-25 18:39   ` Andrii Nakryiko
2025-09-25 18:58     ` Paul E. McKenney
2025-09-23 14:20 ` [PATCH 02/34] rcu: Remove unused ->trc_ipi_to_cpu and ->trc_blkd_cpu from task_struct Paul E. McKenney
2025-09-23 14:20 ` [PATCH 03/34] rcu: Remove ->trc_blkd_node " Paul E. McKenney
2025-09-23 14:20 ` [PATCH 04/34] rcu: Remove ->trc_holdout_list " Paul E. McKenney
2025-09-23 14:20 ` [PATCH 05/34] rcu: Remove rcu_tasks_trace_qs() and the functions that it calls Paul E. McKenney
2025-09-23 14:20 ` [PATCH 06/34] context_tracking: Remove rcu_task_trace_heavyweight_{enter,exit}() Paul E. McKenney
2025-09-23 14:20 ` [PATCH 07/34] rcu: Remove ->trc_reader_special from task_struct Paul E. McKenney
2025-09-23 14:20 ` [PATCH 08/34] rcu: Remove now-empty RCU Tasks Trace functions and calls to them Paul E. McKenney
2025-09-23 14:20 ` [PATCH 09/34] rcu: Remove unused rcu_tasks_trace_lazy_ms and trc_stall_chk_rdr struct Paul E. McKenney
2025-09-23 14:20 ` [PATCH 10/34] rcu: Remove now-empty show_rcu_tasks_trace_gp_kthread() function Paul E. McKenney
2025-09-23 14:20 ` [PATCH 11/34] rcu: Remove now-empty rcu_tasks_trace_get_gp_data() function Paul E. McKenney
2025-09-23 14:20 ` [PATCH 12/34] rcu: Remove now-empty rcu_tasks_trace_torture_stats_print() function Paul E. McKenney
2025-09-23 14:20 ` [PATCH 13/34] rcu: Remove now-empty get_rcu_tasks_trace_gp_kthread() function Paul E. McKenney
2025-09-23 14:20 ` [PATCH 14/34] rcu: Move rcu_tasks_trace_srcu_struct out of #ifdef CONFIG_TASKS_RCU_GENERIC Paul E. McKenney
2025-09-23 14:20 ` [PATCH 15/34] rcu: Add noinstr-fast rcu_read_{,un}lock_tasks_trace() APIs Paul E. McKenney
2025-09-23 17:32   ` Peter Zijlstra
2025-09-24  8:44     ` Paul E. McKenney
2025-09-24  9:08       ` Peter Zijlstra
2025-09-23 14:20 ` [PATCH 16/34] rcu: Remove now-unused rcu_task_ipi_delay and TASKS_TRACE_RCU_READ_MB Paul E. McKenney
2025-09-23 14:20 ` [PATCH 17/34] srcu: Create a DEFINE_SRCU_FAST() Paul E. McKenney
2025-09-23 14:20 ` [PATCH 18/34] rcu: Use smp_mb() only when necessary in RCU Tasks Trace readers Paul E. McKenney
2025-09-23 14:20 ` [PATCH 19/34] rcu: Update Requirements.rst for RCU Tasks Trace Paul E. McKenney
2025-09-25 18:40   ` Andrii Nakryiko
2025-09-25 18:53     ` Paul E. McKenney
2025-09-23 14:20 ` [PATCH 20/34] checkpatch: Deprecate rcu_read_{,un}lock_trace() Paul E. McKenney
2025-09-23 15:47   ` Joe Perches
2025-09-23 17:01     ` Paul E. McKenney
2025-09-23 14:20 ` [PATCH 21/34] rcu: Mark diagnostic functions as notrace Paul E. McKenney
2025-09-23 14:20 ` [PATCH 22/34] tracing: Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast Paul E. McKenney
2025-09-23 14:20 ` [PATCH 23/34] srcu: Create an srcu_expedite_current() function Paul E. McKenney
2025-09-24  0:10   ` Zqiang
2025-09-24  8:56     ` Paul E. McKenney
2025-09-23 14:20 ` [PATCH 24/34] rcutorture: Test srcu_expedite_current() Paul E. McKenney
2025-09-23 14:20 ` [PATCH 25/34] srcu: Create an rcu_tasks_trace_expedite_current() function Paul E. McKenney
2025-09-23 14:20 ` [PATCH 26/34] rcutorture: Test rcu_tasks_trace_expedite_current() Paul E. McKenney
2025-09-23 14:20 ` [PATCH 27/34] srcu: Make DEFINE_SRCU_FAST() available to modules Paul E. McKenney
2025-09-23 14:20 ` [PATCH 28/34] srcu: Make SRCU-fast available to heap srcu_struct structures Paul E. McKenney
2025-09-23 14:20 ` [PATCH 29/34] srcu: Make grace-period determination use ssp->srcu_reader_flavor Paul E. McKenney
2025-09-23 14:20 ` [PATCH 30/34] rcutorture: Exercise DEFINE_STATIC_SRCU_FAST() and init_srcu_struct_fast() Paul E. McKenney
2025-09-23 14:20 ` [PATCH 31/34] refscale: " Paul E. McKenney
2025-09-23 14:20 ` [PATCH 32/34] srcu: Require special srcu_struct define/init for SRCU-fast readers Paul E. McKenney
2025-09-23 14:20 ` [PATCH 33/34] srcu: Make SRCU-fast readers enforce use of SRCU-fast definition/init Paul E. McKenney
2025-09-23 14:20 ` [PATCH 34/34] doc: Update for SRCU-fast definitions and initialization Paul E. McKenney
2025-09-24  7:49 ` [PATCH 0/34] Implement RCU Tasks Trace in terms of SRCU-fast and optimize Alexei Starovoitov
2025-09-24  8:20   ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox