Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1202736imm; Fri, 28 Sep 2018 13:59:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV613WTkc7j0p5q+NuYTW6DM7cv6FdbBycTDUxX2x/pjMLQfy/GG0bVHHf9okKJEwbd6oKYX2 X-Received: by 2002:a62:1c06:: with SMTP id c6-v6mr314110pfc.41.1538168398125; Fri, 28 Sep 2018 13:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538168398; cv=none; d=google.com; s=arc-20160816; b=NeiYiZUoOb5KZ9gELB0e46v0iLLvRcECpQMvjn60KoKpBVD4nn41Yx6fruwii3g7bU uLUCSXdcZhGZk8gxO4OMMI0N+Vggqv2tH39z7hTksXzJJQq81Mva8VPmOYn/OTNFmS7+ jED5QGb8yC323RnDZKPspCsqzS4Q52yEDp24Yh9qGgO3x1EBiRs5h+CUs3X2AXsFMy5f HqL2al1iKBSfNgV+sJEX/axfRAcN1wW9atbfEG227f5nk44fu5qAhxce+2eAhhR67i2+ DjkXIbf4eyYL+zcObNMGoRNbnsj2XbEiN8SZC5a7BxAhjc92VOsbMO7+61x8AFT3MZpw s8KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JDEZ/xevX7YOViWt5ePpf9R0tLDc7NzaSiEompNnIuw=; b=GYliyl7CY1w9eoyPbFwL6Lurf8X+FglzTq6cwr2Sjcu8bk1bRWC9i5vWnQO7sOMcd9 hOGTHjzBBxoQn43VMDEpYmdz7KddmoXrmnqpY5EfJ8JGxNhH76uefitrRZU2z78PphA4 8sJKRTE/KTUoHhWKOf5rvw6LKMVGBpk7zgCowOa6N7pqjutiMbz6+Qv6uGor5PcK9cX+ xNvgRUKF02qKnd8XHrMCmtsd62Il8Flx0sUy/1xczRkPcsp/awzy86s3H5o1nBeile/y u3JpSDgfoxOrNE3TOcHieshWkzsiP7puqcqVh876BGuCNOm3KRl/P7ouRox3l4xpwntY tLHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si5357603pgb.329.2018.09.28.13.59.42; Fri, 28 Sep 2018 13:59:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbeI2DZH (ORCPT + 99 others); Fri, 28 Sep 2018 23:25:07 -0400 Received: from mga14.intel.com ([192.55.52.115]:39204 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeI2DZH (ORCPT ); Fri, 28 Sep 2018 23:25:07 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2018 13:59:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,316,1534834800"; d="scan'208";a="95884402" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga002.jf.intel.com with ESMTP; 28 Sep 2018 13:59:07 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 33B69300B51; Fri, 28 Sep 2018 13:59:07 -0700 (PDT) Date: Fri, 28 Sep 2018 13:59:07 -0700 From: Andi Kleen To: Jann Horn Cc: Mark Rutland , Thomas Gleixner , tursulin@ursulin.net, kernel list , tvrtko.ursulin@linux.intel.com, Peter Zijlstra , the arch/x86 maintainers , "H . Peter Anvin" , acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, maddy@linux.vnet.ibm.com, alexey.budankov@linux.intel.com, Kees Cook Subject: Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting) Message-ID: <20180928205907.GD32651@tassilo.jf.intel.com> References: <20180919122751.12439-1-tvrtko.ursulin@linux.intel.com> <20180928164111.i6nba2j6mnegwslw@lakrids.cambridge.arm.com> <20180928172340.GA32651@tassilo.jf.intel.com> <20180928174016.i7d24puv7y3jwzf6@lakrids.cambridge.arm.com> <20180928204930.GC32651@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > This new file descriptor argument doesn't exist today so it would > > need to create a new system call with more arguments > > Is that true? The first argument is a pointer to a struct that > contains its own size, so it can be expanded without an ABI break. I > don't see any reason why you couldn't cram more stuff in there. You're right we could put the fd into the perf_event, but the following is still true: > > Obviously we would need to keep the old system call around > > for compability, so you would need to worry about this > > interaction in any case! > > > > So tying it together doesn't make any sense, because > > the problem has to be solved separately anyways. -Andi