Re: [RFC PATCH 2/5] sched/events: Introduce cfs_rq load tracking trace event

From: Steven Rostedt
Date: Tue Mar 28 2017 - 10:48:44 EST


On Tue, 28 Mar 2017 10:00:50 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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