Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp27766pxt; Thu, 5 Aug 2021 16:57:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyygvNnPcO/n0+7/p8gVNhlkDN2rL/yUzlGokBcD9qUV9nTG/z6NWb3WThni6Q8N1qfhJRO X-Received: by 2002:a05:6402:1458:: with SMTP id d24mr9853851edx.281.1628207834954; Thu, 05 Aug 2021 16:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628207834; cv=none; d=google.com; s=arc-20160816; b=XBrDzxPeOZpthqgm3ttGTsz79ml5Qwdt0FGVBZyF0FFKFIVii/f9tKvFc2+epfkxUN /zpZuAlBySKGsTPol40CzN3VjrBQYjHHawZDBPOg84dHwaxVdoQRo9rBqzsHNMPt/d2i W3hfbXfYudAEagWPvr0ShlJmZGysCy18I4y8vvJ/VXqp2xKnT2ksxDCQTrKw9XH0zKXA u7KogDocUtywrfy1YM/nsQ4XpyiEn1ue2OF1eRmLsSksTkYqHx8fXc9AUuZQXg65qeLD fVOH65UUsCU0CEL02e0qT1IdeThH4X0txByZgu41vtocC//SwhEio+jF5nCmvKcQkPV8 0gYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7YXGNQbr4wplIdZKTM4CbuCelmPltUOGZ4aCXYZWJxk=; b=qVSLcukGXrsKgTt6szhVsIlwh8YEC6NHbxuqgucekvbDa4w2afID9Db2FbkSRVFxbY ao1f4ACcU01kjktjyqy49bpvkHnNq3peWxRPTFtJXkHTaA84oj3WtyxvlGdjkY/Zq7F+ /Qc86qMK6RL6ff3rfNzi0lEjDnupKO3i8YsolZFNBIY4FhOghLgNxy1Td+6CEhljmzns bMjy8YdUOBdGej6rxc2Iq3wHs1B51gG1Cl1XavSskx/GfujZHFHMJPFrqAK/s6csQaUS bnF7IHGAu/tbeUbKHAgMW7N6wXIJ3eRVPLXoRYf8420CMJHkSx9zxIjOzesf92XacWgj fL5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fGjvgiw5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si7147908edr.212.2021.08.05.16.56.49; Thu, 05 Aug 2021 16:57:14 -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=@redhat.com header.s=mimecast20190719 header.b=fGjvgiw5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbhHEQxs (ORCPT + 99 others); Thu, 5 Aug 2021 12:53:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43028 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234218AbhHEQxs (ORCPT ); Thu, 5 Aug 2021 12:53:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628182413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7YXGNQbr4wplIdZKTM4CbuCelmPltUOGZ4aCXYZWJxk=; b=fGjvgiw5LvOC0flgQYGItRkLIcFKWckLueCax9H4ZQgrIS3+64x4Oz9BVXGlP7AxlJFpx+ W4ivYQalwPdnor7OU7Z3IRMxNkfR7uvvOQCJ5z+SoSk0HEx5UsAbyZZK3kSB78HVxhTJ3i JD/80oTrwlDooyzey8IV5Grm2t7q9xg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-581-BbmM3Ef6MPaMMjyxqDZCKw-1; Thu, 05 Aug 2021 12:53:29 -0400 X-MC-Unique: BbmM3Ef6MPaMMjyxqDZCKw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2792E107ACF5; Thu, 5 Aug 2021 16:53:27 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.36.110.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8CCB760BF4; Thu, 5 Aug 2021 16:53:20 +0000 (UTC) Date: Thu, 5 Aug 2021 18:53:19 +0200 From: Eugene Syromiatnikov To: Peter Zijlstra 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: <20210805165319.GA5916@asgard.redhat.com> References: <20210422120459.447350175@infradead.org> <20210422123309.039845339@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210422123309.039845339@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?