Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1339800pxf; Fri, 26 Mar 2021 06:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz52Mwd7k7ul8sYs6rVBJwACxxFmgFgyvfY431UV6WG4JkFMo0H9zrFSBRJWr8QarqcD0if X-Received: by 2002:a17:906:e2d4:: with SMTP id gr20mr15512087ejb.432.1616764459728; Fri, 26 Mar 2021 06:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616764459; cv=none; d=google.com; s=arc-20160816; b=j4nl3ORKtnOsP7AD48Oz/v0ZctJOCQM80S3SyeDuq1p0wp1K+/OPqbdiiKWLzCnXIH C/5DMuMz5/sTGXqJYfsZwDaNnQWHtod1/Pbnacu68uzQWCtX0uEl50joMRx3g1TjVE6J yiCW4x6u2gnDZuIuaC//tHuJoAKQIYotXyj/2KWMADDbXR0GP9mEV016zYzJyS7wAaSW 9O9VDGlyFMX3pJ7MaD9YsIm6ayLr+KNHvon0KwRStA4Q5aRut+la39dNh/YYVnAykRMz r3R8se2p1/wMBCRQDSJ4T75AChK5pdqyOLKFawYlGJPB+cMkqhMArd7XRuHLA9FedIzj KWbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=KofDPVJtxkimD/x+VQgTf8tPAocq96pyL1UmdsRSbE4=; b=IutBO5koeEQDGEblB7KDeQuiVLvlLylYuojug8Y0xf7y5tp5u3rUdRz9I8BaRCAvNw I4p/3MHFv3sQhlXInNgnMwF/2bglgA/O6eJQACFUvmRA+Ouw9SHUWTwgzURq+nshEEur ljORliT69n1tM+aSu+mb2w9Oha159g7/xyGt9fmVNjxsi5J14MorShjfBn9LOgkthbJd 4Z1m38YjSe1oNq1wtWtrEdu1mrslJK3CwTTRoI7BetrgjZrFVYpvxXEkFy/lwzyteVHZ PYZesCAJu4pcKxqOZDbDeWzd+hHEgOL7F7dCLI02S4eRh8I+cai6vCiEcb3ZzbvHDy6X ZOCA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb26si7122259ejb.144.2021.03.26.06.13.56; Fri, 26 Mar 2021 06:14:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbhCZNM2 (ORCPT + 99 others); Fri, 26 Mar 2021 09:12:28 -0400 Received: from foss.arm.com ([217.140.110.172]:59118 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbhCZNL6 (ORCPT ); Fri, 26 Mar 2021 09:11:58 -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 B66CD143D; Fri, 26 Mar 2021 06:11:56 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 736913F7D7; Fri, 26 Mar 2021 06:11:54 -0700 (PDT) Subject: Re: [PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs To: Peter Zijlstra , mingo@kernel.org, mgorman@suse.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, joshdon@google.com, valentin.schneider@arm.com Cc: linux-kernel@vger.kernel.org, greg@kroah.com References: <20210326103352.603456266@infradead.org> <20210326103935.264012208@infradead.org> From: Dietmar Eggemann Message-ID: Date: Fri, 26 Mar 2021 14:11:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210326103935.264012208@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/03/2021 11:33, Peter Zijlstra wrote: > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/debug.c | 255 ++++++++++-------------------------------------- > kernel/sched/sched.h | 2 > kernel/sched/topology.c | 1 > 3 files changed, 59 insertions(+), 199 deletions(-) Reviewed-by: Dietmar Eggemann [...] > +#define SDM(type, mode, member) \ > + debugfs_create_##type(#member, mode, parent, &sd->member) > > - WARN_ON(sd_ctl_dir[0].child); > - sd_ctl_dir[0].child = cpu_entries; > - } > + SDM(ulong, 0644, min_interval); > + SDM(ulong, 0644, max_interval); > + SDM(u64, 0644, max_newidle_lb_cost); > + SDM(u32, 0644, busy_factor); > + SDM(u32, 0644, imbalance_pct); > + SDM(u32, 0644, cache_nice_tries); > +// SDM(x32, 0444, flags); Can be removed. > + SDM(str, 0444, name); > > - if (!cpu_idx) { > - struct ctl_table *e = cpu_entries; > +#undef SDM > > - cpu_idx = kcalloc(nr_cpu_ids, sizeof(struct ctl_table*), GFP_KERNEL); > - if (!cpu_idx) > - return; > + debugfs_create_file("flags", 0444, parent, &sd->flags, &sd_flags_fops); > +} [...]