Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp898704rwb; Tue, 27 Sep 2022 06:08:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GlytFKDTD9qNJPbnGsy4jgKC6aozbiIkKM1JGUymoABmTPhW7E0wJQAKVN0kHWNjH5Z4D X-Received: by 2002:aa7:9851:0:b0:53e:87eb:1ffa with SMTP id n17-20020aa79851000000b0053e87eb1ffamr29260161pfq.35.1664284094338; Tue, 27 Sep 2022 06:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664284094; cv=none; d=google.com; s=arc-20160816; b=g+WsAfqCNRoCglDcGzPaDNuh9LQq5Z4taTlsMJrKlrKEB/rnsVySSPnuVcXbm/YMSE 0vNTvOqxZi4kqZ//LR+bZhJdL4Y5J3uolWddNLUYrHmrUTIZgrZbXMqYBhB02/V+/uyf WrStsx2MsJC6aY5FnRWFjqJvwVit4+bbw3TNnLcT45YJzPVuJyVwdJzwDGbSsaDsdaiE gQQbHwlYcqmN99PN1WGdFzLbOFfDQiu7G88n5BmrwbQN3+iifxRF5gfnIW9mBu86Y8sW jndiSarxSZu0Sk0lpd4gw5uONA3BTUDel39s0XeOd2/VFrT2FrBh3FEzNtFnXRV8pvDs NdyA== 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:dkim-signature; bh=IZnhEU9vC0tniwm8pD4wYzm7wVcz837lGNjq/8287+o=; b=cFPAyIGTopuyImKBFGMuChXmS60lDZhiIw6HvdGMchjexVTJPabW7SHsBZo4hnTxL4 hkhLnICwpoahErDu6zmLc04cSZlBizFSOOK7X/nfOyorqmwV8T+svwiJVo56XJ0kjNYS jiNp5fSLJkcyNzowDX7zTf2stH1BPSDDARLnqDDsMxRt36t4OIQgmdnUybH45p+8wDUd JxlMq5fswkpWNehJH2D6olPnCFnVKx8Zd68+pb9058/Kx1AdAb5SWsx+zg+FNGyeT6TW rwrpk9t3XdKX7WGvqGu5IAoPuCwpgoCU3zb08DvChJqKR1H3blGilyvSP8f1fOwtKb8A RJ2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=aZRoziNJ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv12-20020a17090b1b4c00b001fe123e7d53si2236182pjb.6.2022.09.27.06.08.02; Tue, 27 Sep 2022 06:08:14 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=aZRoziNJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232238AbiI0NFD (ORCPT + 99 others); Tue, 27 Sep 2022 09:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbiI0NFA (ORCPT ); Tue, 27 Sep 2022 09:05:00 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6585AB42F for ; Tue, 27 Sep 2022 06:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=IZnhEU9vC0tniwm8pD4wYzm7wVcz837lGNjq/8287+o=; b=aZRoziNJYaFTV8spmDQfZucCAr S4ONSaaEKXr62VfXAhKV8DRAmJhy3Iv5ubjLsC5VQMoRa4FdA3qqfC2EjDuucRTPWhAK4DmxYXt9k m88d+K4rkiSymCH2oiSfvfOX30ZFu/al1WziOVYKq+uNxYqSIjHJclMnqZD16hNSO1xmQHGeJM71m FZUZdt8mDbqcIYFHLeUHVSllHVLzpN4PawsxNbZ5bnQPzi5BMe9IjhVNi+LEXkiEsyg5/vXnUNXsA nJdbc2J8oQL2+b4svluO+G1VDPOuy+Pf8GV8LEXrwlQZaQl18T/7+Zj/CH+VsyzqP4EHscpQ7cITU FHxM7aLA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1odAGO-00GI38-J5; Tue, 27 Sep 2022 13:04:40 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E87FF30024D; Tue, 27 Sep 2022 15:04:39 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CE3872BDF120A; Tue, 27 Sep 2022 15:04:39 +0200 (CEST) Date: Tue, 27 Sep 2022 15:04:39 +0200 From: Peter Zijlstra To: Joel Fernandes Cc: Ricardo Neri , Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org, "Tim C . Chen" Subject: Re: [RFC PATCH 03/23] sched/core: Initialize the class of a new task Message-ID: References: <20220909231205.14009-1-ricardo.neri-calderon@linux.intel.com> <20220909231205.14009-4-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Mon, Sep 26, 2022 at 02:57:29PM +0000, Joel Fernandes wrote: > > +#ifdef CONFIG_SCHED_TASK_CLASSES > > + p->class = TASK_CLASS_UNCLASSIFIED; > > +#endif > > I find the term 'class' very broad and unclear what kind of class (without > further reading). So I am worried about how this generic term usage plays > with Linux source code in the long-term (like what if someone else comes up > with a usage of term 'class' that is unrelated to IPC.) However much I like making a pain for people using C++ to compile the kernel, I do think ipcc might be better here (instructions_per_cycle_class for those of the novel per identifier school of thought). > To that end, I was wondering if it could be renamed to p->ipc_class, and > CONFIG_SCHED_TASK_IPC_CLASSES, or something. Can we *please* shorten those thing instead of writing a novel? CONFIG_SCHED_IPC_CLASS works just as well, no? Or TASK_IPC, whatever.