On Tue, 28 Mar 2017 10:00:50 +0200
Peter Zijlstra <pet...@infradead.org> wrote:

> On Tue, Mar 28, 2017 at 07:35:38AM +0100, Dietmar Eggemann wrote:
> >  
> > +   if (cfs_rq)
> > +           trace_sched_load_cfs_rq(cfs_rq);  
> 
> You can do that with DEFINE_EVENT_CONDITION and TP_CONDITION.

I just read this after I replied about using TRACE_EVENT_CONDITION. As
there is not a DEFINE_EVENT(), the TRACE_EVENT_CONDITION() should be
used. All the locations expect cfs_rq to not be NULL I assume.

-- Steve

Reply via email to