public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the rcu tree with the ftrace tree
@ 2025-11-14  2:52 Stephen Rothwell
  2025-11-14 12:42 ` Steven Rostedt
  0 siblings, 1 reply; 34+ messages in thread
From: Stephen Rothwell @ 2025-11-14  2:52 UTC (permalink / raw)
  To: Paul E. McKenney, Frederic Weisbecker, Neeraj Upadhyay,
	Boqun Feng, Uladzislau Rezki, Steven Rostedt, Masami Hiramatsu
  Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

Hi all,

Today's linux-next merge of the rcu tree got a conflict in:

  kernel/trace/trace_syscalls.c

between commit:

  a544d9a66bdf ("tracing: Have syscall trace events read user space string")

from the ftrace tree and commit:

  35587dbc58dd ("tracing: Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast")

from the rcu tree.

I fixed it up (Maybe - see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc kernel/trace/trace_syscalls.c
index e96d0063cbcf,3f699b198c56..000000000000
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@@ -878,6 -322,8 +890,7 @@@ static void ftrace_syscall_enter(void *
  	 * buffer and per-cpu data require preemption to be disabled.
  	 */
  	might_fault();
+ 	preempt_rt_guard();
 -	guard(preempt_notrace)();
  
  	syscall_nr = trace_get_syscall_nr(current, regs);
  	if (syscall_nr < 0 || syscall_nr >= NR_syscalls)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 34+ messages in thread
* linux-next: manual merge of the rcu tree with the ftrace tree
@ 2025-11-06  1:24 Stephen Rothwell
  0 siblings, 0 replies; 34+ messages in thread
From: Stephen Rothwell @ 2025-11-06  1:24 UTC (permalink / raw)
  To: Paul E. McKenney, Frederic Weisbecker, Neeraj Upadhyay,
	Boqun Feng, Uladzislau Rezki, Steven Rostedt, Masami Hiramatsu
  Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]

Hi all,

Today's linux-next merge of the rcu tree got a conflict in:

  include/linux/tracepoint.h

between commit:

  e30f8e61e251 ("tracing: Add a tracepoint verification check at build time")

from the ftrace tree and commit:

  e79b1eaca338 ("tracing: Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast")

from the rcu tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc include/linux/tracepoint.h
index 8a56f3278b1b,9f8b19cd303a..000000000000
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@@ -275,24 -271,29 +280,30 @@@ static inline struct tracepoint *tracep
  		return static_branch_unlikely(&__tracepoint_##name.key);\
  	}
  
- #define __DECLARE_TRACE(name, proto, args, cond, data_proto)		\
+ #define __DECLARE_TRACE(name, proto, args, cond, data_proto)			\
  	__DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \
- 	static inline void __do_trace_##name(proto)			\
- 	{								\
- 		TRACEPOINT_CHECK(name)					\
- 		if (cond) {						\
- 			guard(preempt_notrace)();			\
- 			__DO_TRACE_CALL(name, TP_ARGS(args));		\
- 		}							\
- 	}								\
- 	static inline void trace_##name(proto)				\
- 	{								\
- 		if (static_branch_unlikely(&__tracepoint_##name.key))	\
- 			__do_trace_##name(args);			\
- 		if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) {		\
- 			WARN_ONCE(!rcu_is_watching(),			\
- 				  "RCU not watching for tracepoint");	\
- 		}							\
+ 	static inline void __do_trace_##name(proto)				\
+ 	{									\
++		TRACEPOINT_CHECK(name)						\
+ 		if (cond) {							\
+ 			if (IS_ENABLED(CONFIG_PREEMPT_RT) && preemptible()) {	\
+ 				guard(srcu_fast_notrace)(&tracepoint_srcu);	\
+ 				guard(migrate)();				\
+ 				__DO_TRACE_CALL(name, TP_ARGS(args));		\
+ 			} else {						\
+ 				guard(preempt_notrace)();			\
+ 				__DO_TRACE_CALL(name, TP_ARGS(args));		\
+ 			}							\
+ 		}								\
+ 	}									\
+ 	static inline void trace_##name(proto)					\
+ 	{									\
+ 		if (static_branch_unlikely(&__tracepoint_##name.key))		\
+ 			__do_trace_##name(args);				\
+ 		if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) {			\
+ 			WARN_ONCE(!rcu_is_watching(),				\
+ 				  "RCU not watching for tracepoint");		\
+ 		}								\
  	}
  
  #define __DECLARE_TRACE_SYSCALL(name, proto, args, data_proto)		\

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 34+ messages in thread
* linux-next: manual merge of the rcu tree with the ftrace tree
@ 2017-05-01  3:18 Stephen Rothwell
  0 siblings, 0 replies; 34+ messages in thread
From: Stephen Rothwell @ 2017-05-01  3:18 UTC (permalink / raw)
  To: Paul E. McKenney, Steven Rostedt
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List

Hi Paul,

Today's linux-next merge of the rcu tree got a conflict in:

  kernel/rcu/tree.c

between commit:

  a278d4718988 ("rcu: Fix dyntick-idle tracing")

from the ftrace tree and commit:

  e83d58dc7de2 ("rcu: Add lockdep_assert_held() teeth to tree.c")

from the rcu tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc kernel/rcu/tree.c
index ea2da0b22a6f,e180eea5061e..000000000000
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@@ -792,9 -785,10 +799,10 @@@ static void rcu_eqs_enter_common(bool u
  {
  	struct rcu_state *rsp;
  	struct rcu_data *rdp;
 -	RCU_TRACE(struct rcu_dynticks *rdtp = this_cpu_ptr(&rcu_dynticks);)
 +	struct rcu_dynticks *rdtp = this_cpu_ptr(&rcu_dynticks);
  
+ 	RCU_LOCKDEP_WARN(!irqs_disabled(), "rcu_eqs_enter_common() invoked with irqs enabled!!!");
 -	trace_rcu_dyntick(TPS("Start"), oldval, rdtp->dynticks_nesting);
 +	trace_rcu_dyntick(TPS("Start"), rdtp->dynticks_nesting, 0);
  	if (IS_ENABLED(CONFIG_RCU_EQS_DEBUG) &&
  	    !user && !is_idle_task(current)) {
  		struct task_struct *idle __maybe_unused =

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

end of thread, other threads:[~2025-12-08  4:21 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14  2:52 linux-next: manual merge of the rcu tree with the ftrace tree Stephen Rothwell
2025-11-14 12:42 ` Steven Rostedt
2025-11-14 13:35   ` Sebastian Andrzej Siewior
2025-11-14 15:46     ` Steven Rostedt
2025-11-14 16:00       ` Sebastian Andrzej Siewior
2025-11-14 16:22         ` Steven Rostedt
2025-11-14 16:33           ` Sebastian Andrzej Siewior
2025-11-14 16:48             ` Steven Rostedt
2025-11-14 17:02               ` Sebastian Andrzej Siewior
2025-11-14 17:11                 ` Steven Rostedt
2025-11-14 17:00             ` Paul E. McKenney
2025-11-14 17:10               ` Sebastian Andrzej Siewior
2025-11-14 17:25                 ` Paul E. McKenney
2025-11-14 17:40                   ` Steven Rostedt
2025-11-14 17:41                   ` Sebastian Andrzej Siewior
2025-11-14 18:26                     ` Paul E. McKenney
2025-11-14 14:48   ` Frederic Weisbecker
2025-11-14 16:01     ` Steven Rostedt
2025-11-14 17:06     ` Paul E. McKenney
2025-11-14 18:58       ` Paul E. McKenney
2025-11-18 13:05       ` Frederic Weisbecker
2025-11-18 15:04         ` Paul E. McKenney
2025-12-02  0:57           ` Paul E. McKenney
2025-12-07 20:43             ` Paul E. McKenney
2025-12-08  0:17               ` Steven Rostedt
2025-12-08  4:21                 ` Paul E. McKenney
2025-11-14 17:05   ` Paul E. McKenney
2025-11-14 18:31     ` Yonghong Song
2025-11-18  7:35       ` Sebastian Andrzej Siewior
2025-11-18 15:05         ` Paul E. McKenney
2025-11-30 18:49         ` Yonghong Song
2025-11-19  0:38     ` Paul E. McKenney
  -- strict thread matches above, loose matches on Subject: below --
2025-11-06  1:24 Stephen Rothwell
2017-05-01  3:18 Stephen Rothwell

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