search for: ftrace_record_recursion

Displaying 1 result from an estimated 1 matches for "ftrace_record_recursion".

2023 Jan 26
0
[PATCH v2 3/9] tracing: Warn about !rcu_is_watching()
...edt at goodmis.org> Signed-off-by: Peter Zijlstra (Intel) <peterz at infradead.org> --- include/linux/trace_recursion.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) --- a/include/linux/trace_recursion.h +++ b/include/linux/trace_recursion.h @@ -135,6 +135,21 @@ extern void ftrace_record_recursion(unsi # define do_ftrace_record_recursion(ip, pip) do { } while (0) #endif +#ifdef CONFIG_ARCH_WANTS_NO_INSTR +# define trace_warn_on_no_rcu(ip) \ + ({ \ + bool __ret = !rcu_is_watching(); \ + if (__ret && !trace_recursion_test(TRACE_RECORD_RECURSION_BIT)) { \ + trace_re...