Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp5388pxt; Thu, 5 Aug 2021 16:15:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7hHOYhN7sMYj7+x0nTmE3MYsf3bYmzm1AMudHFe4Xu6gTGFOF7WHUkzc+xi5TG2OY9YYf X-Received: by 2002:a17:906:9a51:: with SMTP id aj17mr7128232ejc.296.1628205331151; Thu, 05 Aug 2021 16:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628205331; cv=none; d=google.com; s=arc-20160816; b=l2BSfUKDf9xR3rz4wNv3m3sawRXl0e5idUh1CvxAqRO7LFjhm5ST0uOYgk+9A4v7k8 6k8cQUazV/O01eW6s6mI5XlZ+0arQjEiZyOIE0D6Ktg9A9py15Y2IhJ+td1eUfd9/TP4 vh1xV04p5h5PHj8gmwl/4lZoXhJZfZHSoRyv+cdRd2bX/XWt5T7InvxHn+CZAQwWtbsc lByy8bZYc/1+WZEXsHOkg3sVR6NablxHNZDX2rqF9N4jSp9oM5KZasdEx+ycnqYk8JbJ Cj2bfbUQJDzJy37CJHl/iuhf8mawjGj2cjwIVJKbeY/7nnqgz4AKTnb5+Wn6xD7RBC5k kVPQ== 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=RfOqjCAhidLnWaJDwZvSEiIqNFmEzZQSFH1l77b3IKE=; b=GHzFBGzoFDpcL5LEjVq817g5AAeRYCPxJbG6/ofu26oEw2OY4xRryuTk5oOmBMDMtK zKt5zmU30Jx9m8482sRUnbHladXH1k74Jp5vWYKpH0eK8FIuVG+xfY+tyPbi3FvvjSg+ f5YANvL1UgpmJ2JGPf0aj/2CjURMHowFVjjWEKdELdBUax9tZG0pKHTcGzdZqEG5tG7I eeMakDvrD3HyPeHeNB5up8q3rZ6b4GjHWhPhxQxLxsF/YNoGs8uIXS10yobYA3DrUhEh 14gjE2V9AuUFiqAv+3s40XFrdQc6cUZ4G1vfEJYKtDkLWNzs5gcbi6hVryZ8ZLNWiE9X 1Mgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=b3DxMoLg; 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 g10si1622996eds.61.2021.08.05.16.15.00; Thu, 05 Aug 2021 16:15:31 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=b3DxMoLg; 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 S235155AbhHERAm (ORCPT + 99 others); Thu, 5 Aug 2021 13:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235024AbhHERAl (ORCPT ); Thu, 5 Aug 2021 13:00:41 -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 C5ADAC061798; Thu, 5 Aug 2021 10:00:26 -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=RfOqjCAhidLnWaJDwZvSEiIqNFmEzZQSFH1l77b3IKE=; b=b3DxMoLgrueXZ0QM4bH5bDn9HU /n+lDznAfHRFbpt+i/Vy/OMlJgYfw/HnOG/+rxF1Q2EJciRa09mEIsxN1JgXHQ39BlmhokBBHhcjj MW1l7pCOMGDbQZ0qPm3QZqeQPyTNoMHFDSUo28oYCS1lwTjJGgha1XopiNZsdzbaqDDTXCymyVeX5 /ShtA3kJT0HslnzF1UlxcIgpLeE38I64GPIQQNNdzcL0fXApsiiiu8rShmo6KFW+dpwmFeopf8iDw lBv1UrgVzyKRnrKZOUa6G907Bt58aF3HDqc8F7iF/gw0gFWcpo/Unrq29ZBCMikUDwa9q8ZKvto4r /lz0sL7Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBgj5-0067Zp-Sf; Thu, 05 Aug 2021 17:00:12 +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 (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7E5B7300084; Thu, 5 Aug 2021 19:00:10 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 381132139818C; Thu, 5 Aug 2021 19:00:10 +0200 (CEST) Date: Thu, 5 Aug 2021 19:00:10 +0200 From: Peter Zijlstra To: Eugene Syromiatnikov Cc: joel@joelfernandes.org, chris.hyser@oracle.com, joshdon@google.com, mingo@kernel.org, vincent.guittot@linaro.org, valentin.schneider@arm.com, mgorman@suse.de, linux-kernel@vger.kernel.org, tglx@linutronix.de, linux-api@vger.kernel.org, ldv@strace.io Subject: Re: [PATCH 18/19] sched: prctl() core-scheduling interface Message-ID: References: <20210422120459.447350175@infradead.org> <20210422123309.039845339@infradead.org> <20210805165319.GA5916@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805165319.GA5916@asgard.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 06:53:19PM +0200, Eugene Syromiatnikov wrote: > On Thu, Apr 22, 2021 at 02:05:17PM +0200, Peter Zijlstra wrote: > > API: > > > > prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, tgtpid, pidtype, &cookie) > > prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, tgtpid, pidtype, NULL) > > prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, tgtpid, pidtype, NULL) > > prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_FROM, srcpid, pidtype, NULL) > > > > where 'tgtpid/srcpid == 0' implies the current process and pidtype is > > kernel enum pid_type {PIDTYPE_PID, PIDTYPE_TGID, PIDTYPE_PGID, ...}. > > It means that enum pid_tipe has to be a part of UAPI now. Would you > like to address it, or rather I'd send a patch? Please send a patch; I'm more sparse than usual atm.