Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3531916imm; Sun, 30 Sep 2018 23:27:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Fd1IUw9sO5NSZgEIEnZFUe+4oPq1wEG/Lj7uQQKFWMFUkVRKDV3PXavSkbiba9HsBTemA X-Received: by 2002:a62:21d1:: with SMTP id o78-v6mr9846891pfj.235.1538375270910; Sun, 30 Sep 2018 23:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538375270; cv=none; d=google.com; s=arc-20160816; b=TuI0ObapUGUQRD00FzP13IeDN62r52oV8fWybqGOxEexXhS+08GAsfvh7vIyJjcD/d 7mt5/Zay+GjXdTvkdwr3/MfjkyrfPXhMlGpkMkwaczSSxijWEWqS9QUB1nxeemw/rvJ+ pfgzeoj+md9Gk1OP9aGAusrs9LL5l5wY6gjT18iU2u3ktiQa7ZLjTmYVsvTbVFo6On5T FkTOgK2gYnkCJBZ674A3z7miq8eiRyge3nVu4Ply7EGmIXuiIm/hUAKd6+GAVxdE/q4N 8bzXK0rRIGTAmGq9GY8QkZWP5Ec3Xq1DTEQcVb8nnRL0GO0vlvHlQmEwZbrX0o5fv0cF DY9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:subject:from; bh=aNMrX8rZyrJi2p55v/6WbSHDFam0RcFA2rH+5OATA/8=; b=vVAJHj6WnGTVFs/zY3RlkaOttNFM+JsbKPkFurI475aUfpZOToJi1JKgxKqLL65N/N wIzU1zKnqMUWrpMGVBVrkGhc8jWSCmLr3WYMbqGVHr6QH29dj7zoPp48zWqq8Qd9T0B/ 6ys/Ar7Vv/N/470U+eV87iCX75mApLjOJZgcoBUfZWhpbZbF6Mr/PbPDLki/OQGQavjM 7p/8GQVbq2oRE3ED4ETPdxlkMj3ejfitCI2MyOxuIV0D/Qprsf9ZH3d9sUqZldGztzAP ZhMRHqFzg+m2ngROpde/QCzYatqroCTX6GKGQ6aX1Msp7pWNoaEPGbb0g7qaBateCRis jrsg== 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 o5-v6si11204361plk.95.2018.09.30.23.27.36; Sun, 30 Sep 2018 23:27:50 -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 S1728821AbeJANB4 (ORCPT + 99 others); Mon, 1 Oct 2018 09:01:56 -0400 Received: from mga09.intel.com ([134.134.136.24]:61968 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbeJANB4 (ORCPT ); Mon, 1 Oct 2018 09:01:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Sep 2018 23:25:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,326,1534834800"; d="scan'208";a="94922403" Received: from linux.intel.com ([10.54.29.200]) by fmsmga001.fm.intel.com with ESMTP; 30 Sep 2018 23:25:47 -0700 Received: from [10.125.252.7] (abudanko-mobl.ccr.corp.intel.com [10.125.252.7]) by linux.intel.com (Postfix) with ESMTP id 9D287580409; Sun, 30 Sep 2018 23:25:43 -0700 (PDT) From: Alexey Budankov Subject: Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting) To: Jann Horn Cc: Andi Kleen , 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, Kees Cook 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> <20180928212757.GE32651@tassilo.jf.intel.com> Organization: Intel Corp. Message-ID: <22155f49-2f57-73b8-6e89-ddd8a127967b@linux.intel.com> Date: Mon, 1 Oct 2018 09:25:42 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180928212757.GE32651@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jann, > On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: >> >> >> 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? There are usages in production where perf_event_open() syscall accompanied with read(), mmap() etc. is embedded into application on per-thread basis and is used for self monitoring and dynamic execution tuning. There are also other Perf tools around that, for example, are statically linked and then used as on Linux as on Android. Backward compatibility does matter in these cases. Thanks, Alexey