Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1851182iob; Fri, 29 Apr 2022 14:31:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWuR+iGolUu0eIz/6SB35N/wrakmQf/gJuIyWAAUXz2zUt6xhkp53IGq4Ky/wnCrlsp6Pz X-Received: by 2002:a63:42c4:0:b0:3a2:b7e5:5077 with SMTP id p187-20020a6342c4000000b003a2b7e55077mr929614pga.427.1651267888619; Fri, 29 Apr 2022 14:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651267888; cv=none; d=google.com; s=arc-20160816; b=cFfGArR3w7RqZezMEwil6En5f+Ks3u+KqTvtE6r+A4s5v1P1bfJqq8JDMVZ5awUyWP otYQ7IDUq1u9sw8HbptnsSunBxS8WcYkyJFo+jf7Q84i5fWQuF3htafWICfJZD4s4QS1 VDHbk2yzv4qKSgy24KvmNZ6l6xPSkk/FlKhXKJ8fPkurxSKVdlYmXjbA4D0gh21GHmfu ZOPmLSjhu15c1UuitJcbd+cIQ/pXj7z5Mzq24sctDQHHd33IM4p9svz4my7QnnXTk+I2 YPA65AF5SYWLeX6Z7a9smhfJ8joVqKkKF+7zx4wO4D3v9JvUBvolKex77OKOGNc7L8rb 12Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/ILsYJ/IhOFL+VT1LAo4YtJdPV8E+ZYJGcTpvzJw5cI=; b=j8/AGl5DOW/dCRCy8wKB8dyFzAwdnRI9+Ad4iJWUZFAOrlEwVE03h5jGy5uwAk+hqE +SSIy1qIZJbtVDxxsfULO3wSLZQ/1QiDdGmuXyc7KTXV+871/xlg/NRUXHcFWz2Mxlym 3HaILdJ6cSOZnj9sSwPt7+wbL1+K+trj7IkK0w6RvTbyo4+wrkivRcs4JUHByzU0TZ4n fkC8/txQ7fPwfFL0Fxrz07yFFhtPzh5+QS/7zArA6EY9bD4wC6ToLkEUae4BsMDo6HI6 /qAu9W4xfQrURnGQzA/ER70hyZNODMJfZLy0YPwTtMWHMwtSmaRM0WHzrNQu1im5sJxF HvfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a631412000000b003ab2603395esi7845119pgl.874.2022.04.29.14.31.13; Fri, 29 Apr 2022 14:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355948AbiD2I4b (ORCPT + 99 others); Fri, 29 Apr 2022 04:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236950AbiD2I4a (ORCPT ); Fri, 29 Apr 2022 04:56:30 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE86CC44EC for ; Fri, 29 Apr 2022 01:53:11 -0700 (PDT) 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 9ED421063; Fri, 29 Apr 2022 01:53:11 -0700 (PDT) Received: from wubuntu (unknown [10.57.75.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74E753F73B; Fri, 29 Apr 2022 01:53:10 -0700 (PDT) Date: Fri, 29 Apr 2022 09:53:08 +0100 From: Qais Yousef To: "Peter Zijlstra (Intel)" , Ingo Molnar Cc: Dietmar Eggemann , Vincent Guittot , Steven Rostedt , Phil Auld , Giovanni Gherdovich , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sched/fair: Remove cfs_rq_tg_path() Message-ID: <20220429085308.sxj2w6i3n2btbpyh@wubuntu> References: <20220428144338.479094-1-qais.yousef@arm.com> <20220428144338.479094-3-qais.yousef@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220428144338.479094-3-qais.yousef@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +CC lkml On 04/28/22 15:43, Qais Yousef wrote: > From: Dietmar Eggemann > > cfs_rq_tg_path() is used by a tracepoint-to traceevent (tp-2-te) > converter to format the path of a taskgroup or autogroup respectively. > It doesn't have any in-kernel users after the removal of the > sched_trace_cfs_rq_path() helper function. > > cfs_rq_tg_path() can be coded in a tp-2-te converter. > > Remove it from kernel/sched/fair.c. > > Signed-off-by: Dietmar Eggemann > Signed-off-by: Qais Yousef > --- > kernel/sched/fair.c | 19 ------------------- > 1 file changed, 19 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index ff1177a4a286..7487737c1275 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -313,19 +313,6 @@ const struct sched_class fair_sched_class; > #define for_each_sched_entity(se) \ > for (; se; se = se->parent) > > -static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) > -{ > - if (!path) > - return; > - > - if (cfs_rq && task_group_is_autogroup(cfs_rq->tg)) > - autogroup_path(cfs_rq->tg, path, len); > - else if (cfs_rq && cfs_rq->tg->css.cgroup) > - cgroup_path(cfs_rq->tg->css.cgroup, path, len); > - else > - strlcpy(path, "(null)", len); > -} > - > static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) > { > struct rq *rq = rq_of(cfs_rq); > @@ -493,12 +480,6 @@ static int se_is_idle(struct sched_entity *se) > #define for_each_sched_entity(se) \ > for (; se; se = NULL) > > -static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) > -{ > - if (path) > - strlcpy(path, "(null)", len); > -} > - > static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) > { > return true; > -- > 2.25.1 >