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

From: Peter Zijlstra
Date: Tue Mar 28 2017 - 04:01:17 EST


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.