Merge tag 'block-6.9-20240322' of git://git.kernel.dk/linux
[linux-2.6-microblaze.git] / include / linux / tracepoint.h
index 88c0ba6..689b6d7 100644 (file)
@@ -199,7 +199,8 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
                if (!(cond))                                            \
                        return;                                         \
                                                                        \
-               if (WARN_ON_ONCE(RCUIDLE_COND(rcuidle)))                \
+               if (WARN_ONCE(RCUIDLE_COND(rcuidle),                    \
+                             "Bad RCU usage for tracepoint"))          \
                        return;                                         \
                                                                        \
                /* keep srcu and sched-rcu usage consistent */          \
@@ -259,7 +260,8 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
                                TP_ARGS(args),                          \
                                TP_CONDITION(cond), 0);                 \
                if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) {             \
-                       WARN_ON_ONCE(!rcu_is_watching());               \
+                       WARN_ONCE(!rcu_is_watching(),                   \
+                                 "RCU not watching for tracepoint");   \
                }                                                       \
        }                                                               \
        __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \