Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1228344imm; Fri, 28 Sep 2018 14:29:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV62WGvRu06vpxvIPY/lc5kGdfFi8Qn0NZGmIRARtxbiHsSR7/+DpwqMsS65sFrkaHJOs/Iv4 X-Received: by 2002:a63:6946:: with SMTP id e67-v6mr381072pgc.119.1538170143459; Fri, 28 Sep 2018 14:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538170143; cv=none; d=google.com; s=arc-20160816; b=fuZLmneH/rpmyeSMTZEJ2f+ZdPSi/aAcPAi34qtCdpAYD4mJEfYxDubFrNpDAKfwFi obbeAtlRi6eN4/QilR0N44vFq06iVpDD7vC8KT7iGEXfORnoTnMDyXUfMkRKzx5MV/p2 NulEMDWXAEwaH4xWo4j9JYj1QVwi5a1bux+OeVHvss67O5Goe1F+MlnMlJIe3Y4ek6rE ZBn/pDkl78hwI0C/9XsOby/PVvLUf9VyEv3vV0v2HpvY6zbdsCKo845+HNFZH7WIk+Qg TiKbPk43s8P6/YNGcst5IIBruBgXLj5Fa9T4PYanOI5baOqt8B/2RWMCrRd9zs1sRuoi EfYQ== 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=94Rmngg9VkzxKEmkgCqdJYTatKtYWxwDHQN/XqO//Yo=; b=G4GBPAa2lpLIF4dXmG02IPiNwnxZM9sMTcvkc3prkWfq3py+UTsE5mTmLA19t0sCL/ zjL0IVxrQaU0e45KTsHXwBWbm7eSaJglZYO9WrlK5nKgvwvbBOtYM/w4CzGsfkxO7Qp7 WgIVFBxQgSxx32PRaUQA6X/Rk6T811xTCFGkp6rZX2Qm60fDbrK51lLLeb+Kru5MFTHI y9keQ2BZENBFtXau4TXXAWnNJDXBFUw4A2UDijxGgNIaL7pcLXq45uY69pUvEHgnxORS MjfH/H2yXjaUrE1v0qQgm3h8vHOdbfyNT3++OCXoZYKmXnaeZ5nTff/D4DiAtq27PcmP Ptbw== 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 n4-v6si5458924pgi.69.2018.09.28.14.28.40; Fri, 28 Sep 2018 14:29:03 -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 S1727295AbeI2Dxs (ORCPT + 99 others); Fri, 28 Sep 2018 23:53:48 -0400 Received: from mga17.intel.com ([192.55.52.151]:46640 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbeI2Dxs (ORCPT ); Fri, 28 Sep 2018 23:53:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2018 14:28:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,316,1534834800"; d="scan'208";a="94851232" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga001.jf.intel.com with ESMTP; 28 Sep 2018 14:27:57 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 5CE6E300B51; Fri, 28 Sep 2018 14:27:57 -0700 (PDT) Date: Fri, 28 Sep 2018 14:27:57 -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: <20180928212757.GE32651@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> <20180928205907.GD32651@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 On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: > On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen wrote: > > > > 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! > > > Is that true? IIRC if you want to use the perf tools after a kernel > update, you have to install a new version of perf anyway, no? Not at all. perf is fully ABI compatible. Yes Ubuntu/Debian make you do it, but there is no reason for it other than their ignorance. Other sane distributions don't. Usually the first step when I'm forced to use one of those machine is to remove the useless wrapper and call the perf binary directly. -Andi