Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5508305yba; Mon, 13 May 2019 12:05:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6a8pTGFWZ15xfFcUCHTq5KcZ+9JLMqcQrmHxMewNFCSkYeGajB61DdYJzoGsHcrfnG5ug X-Received: by 2002:a62:1c06:: with SMTP id c6mr24710277pfc.168.1557774306768; Mon, 13 May 2019 12:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557774306; cv=none; d=google.com; s=arc-20160816; b=egMA5/0k8H7tj4dagY6sSXOWdCOqROGPgVeo02xulN1CV+x7t0DngP6oUAVeyn9TQR b/IE1bYrb/KlV8w4WB+6vt4Fx4NeSvGlbeBIMys4esfx9ew1qbywwhUwZ6ATKk8uv7+/ Aspo2tZHHQQutz+XBKHHtgtwCRowDsBp0U8LNQng+QgK3adp6AHNjrokpMfB71wHD94I SqyogvqmJ/qHZ8HaA7SafD4L1ZDSkLStgpeWB0AH3emjd4N0hhnjyr4kAgJiF0P9l9KK 5jDxG2MlJkljCYRG4mbsmFKS+gQKYGeqpOMFHKcogv5zaYng5X5uS6elJySkWG9N3J8k cUOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CQSUQjRxUMnpX4S/3Y7ZPtIqyLJ4KpwPTT/BOnLiV0Y=; b=LHLT2zapI7Pe4zNfoJnWcT6JbdkdwnBq9eEEgrOlSXba4nbH4kNw93Epfpjns4PvjH mIbg2j7JqgrKqosjysRq3zcP1/2gv0HXPndO0ApMp8KBMB0y0miJFE0hxyItCmrG+dnQ Bmk+FJ17o7AunCW4nrnG2g+47KuwkLnTRzkKOoR20+1J/5fhaR3mQO74yPsfljuF5fdh 0vfmonriEfk7URvUKBYUDXeVqtHFOV9mb72s1GtnusUEDvaPb2a1r+tlQHoGjwfE3aaJ YDTVQ343f6Wr0NxY4QQuHk5HP4KbS2u8ozqX+AVGstrXdyCRbPWl1K6Rbb129a0hiOSV m5+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22si14645264pfj.21.2019.05.13.12.04.50; Mon, 13 May 2019 12:05:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731230AbfEMPSq (ORCPT + 99 others); Mon, 13 May 2019 11:18:46 -0400 Received: from foss.arm.com ([217.140.101.70]:59238 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728962AbfEMPSp (ORCPT ); Mon, 13 May 2019 11:18:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1B0BC341; Mon, 13 May 2019 08:18:45 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6E8A93F71E; Mon, 13 May 2019 08:18:43 -0700 (PDT) Date: Mon, 13 May 2019 16:18:40 +0100 From: Qais Yousef To: Peter Zijlstra Cc: Ingo Molnar , Steven Rostedt , linux-kernel@vger.kernel.org, Pavankumar Kondeti , Sebastian Andrzej Siewior , Uwe Kleine-Konig , Dietmar Eggemann , Quentin Perret Subject: Re: [PATCH v2 0/7] Add new tracepoints required for EAS testing Message-ID: <20190513151840.fhicik6mx6lowykm@e107158-lin.cambridge.arm.com> References: <20190510113013.1193-1-qais.yousef@arm.com> <20190513122857.GU2623@hirez.programming.kicks-ass.net> <20190513134203.xmw6rsjwpj5b4tj6@e107158-lin.cambridge.arm.com> <20190513150619.GX2589@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190513150619.GX2589@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/13/19 17:06, Peter Zijlstra wrote: > On Mon, May 13, 2019 at 02:42:03PM +0100, Qais Yousef wrote: > > On 05/13/19 14:28, Peter Zijlstra wrote: > > > > > > > > > diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h > > > index c8c7c7efb487..11555f95a88e 100644 > > > --- a/include/trace/events/sched.h > > > +++ b/include/trace/events/sched.h > > > @@ -594,6 +594,23 @@ TRACE_EVENT(sched_wake_idle_without_ipi, > > > > > > TP_printk("cpu=%d", __entry->cpu) > > > ); > > > + > > > +/* > > > + * Following tracepoints are not exported in tracefs and provide hooking > > > + * mechanisms only for testing and debugging purposes. > > > + */ > > > +DECLARE_TRACE(pelt_cfs_rq, > > > + TP_PROTO(struct cfs_rq *cfs_rq), > > > + TP_ARGS(cfs_rq)); > > > + > > > +DECLARE_TRACE(pelt_se, > > > + TP_PROTO(struct sched_entity *se), > > > + TP_ARGS(se)); > > > + > > > +DECLARE_TRACE(sched_overutilized, > > > + TP_PROTO(int overutilized), > > > + TP_ARGS(overutilized)); > > > + > > > > If I decoded this patch correctly, what you're saying: > > > > 1. Move struct cfs_rq to the exported sched.h header > > No, don't expose the structure, we want to keep that private. You can > use unqualified pointers. > > > 2. Get rid of the fatty wrapper functions and export any necessary > > helper functions. > > Right, that should get them read-only access to the members of those > structures and avoids the tracing code itself from becoming ugleh and > also avoids us having to export those structures (which we really don't > want to do). > > > 3. No need for RT and DL pelt tracking at the moment. > > Nah, you probably want rt,dl,irq (as Dietmar pointed out), it's just > that your patched didn't do it right and I was lazy. > > > I'm okay with this. The RT and DL might need to be revisited later but we don't > > have immediate need for them now. > > > > I'll add to this passing rd->span to sched_overutilizied. > > Or pass the rd itself and add another wrapper to extract the span. Ok got ya. Will do. Thanks -- Qais Yousef