lkml.org 
[lkml]   [2017]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 2/5] sched/events: Introduce cfs_rq load tracking trace event
On Tue, 28 Mar 2017 10:00:50 +0200
Peter Zijlstra <peterz@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

\
 
 \ /
  Last update: 2017-03-28 16:51    [W:0.086 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site