Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1224782imm; Fri, 28 Sep 2018 14:24:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV61KLJaig0Lf4llcFosz3WCrnj29Ub2LMHWkd3eJjliDMut/ZN1k3YWHoHhW0mQAz+mwjSPq X-Received: by 2002:a63:1e5c:: with SMTP id p28-v6mr391357pgm.376.1538169883829; Fri, 28 Sep 2018 14:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538169883; cv=none; d=google.com; s=arc-20160816; b=ddXkzK0eXvF14GA+XnQ77NtD4Qr5534TNiFpjPYPAJqM8NoVwhqNQMmq4WQytUpvVv ESNY5YS1t/GChiefSz88Ypr+sjDWmoIyIFBzHKuMf0jRaHbHSv+fLNV/OqTxBkF4rQ4M TosAWFTChLmwsOa7YCJO2DDeVv4x1puPQOr49LiX3c4eMq9fmQTAUcRIqkbSRAntOdi2 gDrkpcqnSSjGGzZmcl/Ur8mtfeFEpjc8S5hTJ5+42aoyn0c/pwB4L6Z99SFVrGGqCpxH swZ+Q6PVJocotATrPx7e58BxMb022AAWQuE530e1OW7Ax7Xqh35FdKrWvNXOrA+m4L1a LWQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r6JoaT5QqcFDfr2sNpa+ntHycWlLavMKmWFyVoIELwM=; b=nC2VkEmk5dJH+xoA5QZ4znA3z7oBlnoOR/gLaegzTFXrGIMMdW8XPMhvXd/PirWlud 5VFVVEwGoqbXBmVKGviqx+G/61YXk8MKymjiWjpHUDjEg//YR8mKcv52uq9s3PPsk8Ur LVnL+eU5IjofDwFzgF4sPsOcLCzY7fTjM5KhTUdO0+t6oO7W7hRU2i0OFoigto5lU32s eAB4ZGO9nH5HmCJSdgAswCgMse6yjae0hlRaiaoVS3OXuBORQBnRi2MRA6JFOi+GVQMl TaSCRCZ/OqkNJ4YWa1ePqU7nrIB57Y46DqR9c2LzioDolSLBj9qd8yZSmk1XSuM8tHPt Xwtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MKAQTyDr; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si6331395plg.18.2018.09.28.14.24.28; Fri, 28 Sep 2018 14:24:43 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=MKAQTyDr; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727342AbeI2Dsk (ORCPT + 99 others); Fri, 28 Sep 2018 23:48:40 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:43608 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeI2Dsk (ORCPT ); Fri, 28 Sep 2018 23:48:40 -0400 Received: by mail-ot1-f67.google.com with SMTP id e21-v6so7369624otk.10 for ; Fri, 28 Sep 2018 14:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r6JoaT5QqcFDfr2sNpa+ntHycWlLavMKmWFyVoIELwM=; b=MKAQTyDrVywFgsT0B1SO5kUBDfOj6H2JZC/AyU9U3K99IWglYo2+QS4Mp9LBI3zJYO SHMA+6Ve7xhcUUzrMAnBfttp1X4z2SuNFxTDlxnrGaN2cirvHLnCc7Ji9xfc0W1VLQ3t RpBh+JSwN3mzD/4+rCJxr4aCRNDtf0xbjvAgejTDSdNURtLu3iwmkssiXVtJoiTPRaPs 5ckbuEy1R+5dx7ACiWGDBVWv8BdFknkxkxDTWhbpYtUrQvwomwb77xcf0tQXCH0pom7r DJ6hPQoyD3vRYF5nvS+RsCZHncDfjFEapGPa9dZINzVjYXoUG6fboOLYU/HVH5vJec7V 16bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r6JoaT5QqcFDfr2sNpa+ntHycWlLavMKmWFyVoIELwM=; b=WKGHclgQujSNl265p8bZtFwLiAwETo+jRXrN06jzVGprtkKw4ztLzgYnwFYhVMmm/w MQnRME09iRdRazIS8JNTLo2a04ewJTv+5PsSL2RNmor0tej1h+ZsIQCyuUiTxJOFVs/+ kf4NoEeTTqnx0HIn1jNwvVjJSmxHQoEE2SF0X3mnTa8Td1hCh9dquSc5rdwSv9wEPYxQ n118oIrVLEY+MmObfcbeffGHgIMWheNjqd3bdb/VaEpelrCSLANvgbCFs+DwNBW5Ac2E olBVpuAEo4a4/7XX8EsY4kvvKHcwm6aJpa4nVulC+OcrfKlH3FRIUChHl5UOPFebkoKA jbhQ== X-Gm-Message-State: ABuFfojM21n8NcPCQW08xyCdMn2djxCECkSOAnFrdfwQ04fGYryG2ws4 lh6jB19ZZwgAz2YdZOJzDlce2rVfc7RXJf413mwdQw== X-Received: by 2002:a9d:870:: with SMTP id 103-v6mr283311oty.292.1538169783895; Fri, 28 Sep 2018 14:23:03 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20180928205907.GD32651@tassilo.jf.intel.com> From: Jann Horn Date: Fri, 28 Sep 2018 23:22:37 +0200 Message-ID: Subject: Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting) To: Andi Kleen 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 Content-Type: text/plain; charset="UTF-8" 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 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? I think after I run a kernel update, when I run "perf top", it just refuses to start and tells me to go install a newer version. Would the users of perf_event_open() that want to monitor this graphics stuff normally keep working after a kernel version bump? I realize that the kernel is very much against breaking userspace interfaces, but if userspace has already decided to break itself after every update, we might as well take advantage of that... > > > So tying it together doesn't make any sense, because > > > the problem has to be solved separately anyways.