Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b6ca1f authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Turn off tracing before dumping trace



Currently, RCU allows tracing to continue when it automatically does
ftrace_dump() after detecting an error condition, which can result in
excessively large traces and lost trace events.  This commit therefore
does a tracing_off() before any of these ftrace_dump() calls.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 9b9500da
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -220,8 +220,10 @@ do { \
	static atomic_t ___rfd_beenhere = ATOMIC_INIT(0); \
	\
	if (!atomic_read(&___rfd_beenhere) && \
	    !atomic_xchg(&___rfd_beenhere, 1)) \
	    !atomic_xchg(&___rfd_beenhere, 1)) { \
		tracing_off(); \
		ftrace_dump(oops_dump_mode); \
	} \
} while (0)

void rcu_early_boot_tests(void);