Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754668AbdC1IBF (ORCPT ); Tue, 28 Mar 2017 04:01:05 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38832 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754537AbdC1IBE (ORCPT ); Tue, 28 Mar 2017 04:01:04 -0400 Date: Tue, 28 Mar 2017 10:00:50 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Ingo Molnar , LKML , Matt Fleming , Vincent Guittot , Steven Rostedt , Morten Rasmussen , Juri Lelli , Patrick Bellasi Subject: Re: [RFC PATCH 2/5] sched/events: Introduce cfs_rq load tracking trace event Message-ID: <20170328080050.yajakazk5v3njwqi@hirez.programming.kicks-ass.net> References: <20170328063541.12912-1-dietmar.eggemann@arm.com> <20170328063541.12912-3-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170328063541.12912-3-dietmar.eggemann@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 187 Lines: 6 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.