Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1374071ybt; Thu, 2 Jul 2020 03:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyLx0Q6XgVTXy2iXSYfsy6o2GdOjApTLbYxbf9SxTCVXfctv/CUHLi8juCgLPLRux4+kzK X-Received: by 2002:a17:906:4447:: with SMTP id i7mr18284440ejp.191.1593687452037; Thu, 02 Jul 2020 03:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593687452; cv=none; d=google.com; s=arc-20160816; b=iFfOChIZYN0fzLAq906BiWno1JzxMr4L5ki4VN2NxOO7NMMZjZJF1WJD7rbqdacRsl b0HuARw9do90iNltrOKJIeTUcDvwaGUpmVW0UyrADBeaTk8YQyuipQa1J55zROKROclQ nN1SlEQi8OinCBcPcJAaozZe5/Rxy0Lg9CMXDl6M85XTpviNwU6iGU5PLi49KnhqUJRO zfNFXucqhugOD5w983LrSQqTdd2OSmCDa9YCDg5KuIRAgXbltYFpvY2shyVdqXO1MT7S nNR+N/6sAhjHbCzVqP7Xk5WdgBdGx3e+14thbVlzXFf2qxqAQnZ/nTg9dEnevVcERiNa T+hw== 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=iqkzhTJyzkYCqFeNnEc43MjXc5K+yBKSUxxFAmyxRMs=; b=kGLGUQ2WLX5LeIXgPUmX426/g1mpyvwd569yKmyUviA7meIpITlNS8Yelt68Xw5udl rBMaBcaz7VXgrJnJ5mUwfeXE6F70QVKs5PStzzv3NOEjwi9IqaYj2CxvMlk9UDOEuKV6 0+YldZHoIMJYweMsIgq4Itq7H/YNQ8VYVs681Qixy83/t8IQkW8W0CPkQi5yQ96061NU yMqdRkYaxZtaM5MdWVr2Br+1KiqL+mLvZ4vuJWARn70lJv1m9ScvrvHpVv2dFuJ543Fv 7VrKicb1ptldAm1038PWxmvhswfe68qJYI2s7qBw9xVeU94tvDko2ZlRG0IF71Ncfb1t q/gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf17si5669964ejb.86.2020.07.02.03.57.09; Thu, 02 Jul 2020 03:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728074AbgGBKyk (ORCPT + 99 others); Thu, 2 Jul 2020 06:54:40 -0400 Received: from foss.arm.com ([217.140.110.172]:38268 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgGBKyk (ORCPT ); Thu, 2 Jul 2020 06:54:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82FB61FB; Thu, 2 Jul 2020 03:54:39 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 63C613F71E; Thu, 2 Jul 2020 03:54:38 -0700 (PDT) Date: Thu, 2 Jul 2020 11:54:36 +0100 From: Qais Yousef To: Phil Auld Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Vincent Guittot , Steven Rostedt , Juri Lelli , Mel Gorman Subject: Re: [PATCH v2] Sched: Add a tracepoint to track rq->nr_running Message-ID: <20200702105435.na2vumpnov5w5tis@e107158-lin.cambridge.arm.com> References: <20200619141120.1476-1-pauld@redhat.com> <20200629192303.GC120228@lorien.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200629192303.GC120228@lorien.usersys.redhat.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/29/20 15:23, Phil Auld wrote: > Add a bare tracepoint trace_sched_update_nr_running_tp which tracks > ->nr_running CPU's rq. This is used to accurately trace this data and > provide a visualization of scheduler imbalances in, for example, the > form of a heat map. The tracepoint is accessed by loading an external > kernel module. An example module (forked from Qais' module and including > the pelt related tracepoints) can be found at: > > https://github.com/auldp/tracepoints-helpers.git > > A script to turn the trace-cmd report output into a heatmap plot can be > found at: > > https://github.com/jirvoz/plot-nr-running > > The tracepoints are added to add_nr_running() and sub_nr_running() which > are in kernel/sched/sched.h. In order to avoid CREATE_TRACE_POINTS in > the header a wrapper call is used and the trace/events/sched.h include > is moved before sched.h in kernel/sched/core. > > Signed-off-by: Phil Auld > CC: Qais Yousef > CC: Ingo Molnar > CC: Peter Zijlstra > CC: Vincent Guittot > CC: Steven Rostedt > CC: linux-kernel@vger.kernel.org > --- LGTM. Reviewed-by: Qais Yousef Thanks -- Qais Yousef