On Wed, 9 Mar 2016 12:22:22 +0000
Sudeep Holla <sudeep.holla@xxxxxxx> wrote:
Hi Steven,
I observed that in "include/linux/tracepoint.h", we have
#define __DO_TRACE(tp, proto, args, cond, prercu, postrcu)
...
if (!cpu_online(raw_smp_processor_id()))
return;
if (!(cond))
return;
...
where !cond check seems reduntant if it's cpu_online check.
So, does this patch handle the warning correctly or is there any better
way ? I did see few traces with same condition, just thought of checking
with you.
Bah, I forgot that we have lockdep checks for when the event isn't
enabled.
Can you try this patch: