Displaying 1 result from an estimated 1 matches for "trace_get_context_bit".
2023 Jan 26
0
[PATCH v2 3/9] tracing: Warn about !rcu_is_watching()
...rn_on_no_rcu(ip) false
+#endif
+
/*
* Preemption is promised to be disabled when return bit >= 0.
*/
@@ -144,6 +159,9 @@ static __always_inline int trace_test_an
unsigned int val = READ_ONCE(current->trace_recursion);
int bit;
+ if (trace_warn_on_no_rcu(ip))
+ return -1;
+
bit = trace_get_context_bit() + start;
if (unlikely(val & (1 << bit))) {
/*