Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2462199imm; Thu, 27 Sep 2018 13:18:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV62tTQx+IVpK6J6G7D6b4DKhDt+n17oXgGPNlZG8r9KIqj6gAs5jn9xR6cRldMXPQW28il3C X-Received: by 2002:a63:6ec4:: with SMTP id j187-v6mr11842279pgc.3.1538079502136; Thu, 27 Sep 2018 13:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538079502; cv=none; d=google.com; s=arc-20160816; b=mi0GnpToijMgrXeAM1qn2hAFVxfYbXZ0rnNm7hrWjwuXEeRZia4OZj6zfNwLbUrQOE PBQSgqT3rpTF8n/PNA6SVZR0CujJh8nJPiXPal10qCayt7zNZiBVK7JXA/NsQglczV2Z uq1rPdfxfHWKImlP7g0fQZ8jwKkFRPsXv8zA8xW7Rgp05B+WsOlg+b+YFZXKqpUwhqm3 MjzizNBUnniG7a/E2MdLNoRcNlzB0g/+JF68+Nd2Tlr3aCwwTWbwD6w88eZajh2W+bV/ i/Q5lhOfniJrL16f/UCXHxmD4yiLLTzi4wSzbwztkiyLH8ZJzEHM78RfRgWJdv/wynmU MW0A== 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=DaJtGzzw7gAo3d71aannEP+tMcayzBZPeGcBXoslOjI=; b=snGD1AtRL6Y+qtx+k1ZuhdSbcHPwoA6nW8JYk6RvbDlG9uY9DauNx7FEc+Yzw5rX9M bckNEGclhlpjfYC+sZJIMpWPVk9T78obo6vdOgDpBxDPj0attFF4sPHGWzPrd8rfLVzF DvM6+UxAw2PpaRhaZ/iXze/mBmGG2J5wKa6bAFOj8LaTZLDfYGBZxC5I+HB+eKwJWwHt SA7F5W3Fx7DDd00mJ4dmsG3H5GJdVgID5Zt0e6umijXnANSZRqS6cey/Cctw0TtRqInS UdOvzJM5cgqmPVjnDzssSmThDWovfUeZCFGEw0pTx2/O+1y8zvUgPu+vUzAJWtC7zQqK 2dQQ== 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 e7-v6si2935694plk.122.2018.09.27.13.18.06; Thu, 27 Sep 2018 13:18:22 -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 S1728023AbeI1CgN (ORCPT + 99 others); Thu, 27 Sep 2018 22:36:13 -0400 Received: from mga04.intel.com ([192.55.52.120]:4721 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbeI1CgN (ORCPT ); Thu, 27 Sep 2018 22:36:13 -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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 13:16:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,312,1534834800"; d="scan'208";a="95521806" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga002.jf.intel.com with ESMTP; 27 Sep 2018 13:15:59 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 1ED983011B1; Thu, 27 Sep 2018 13:15:59 -0700 (PDT) Date: Thu, 27 Sep 2018 13:15:59 -0700 From: Andi Kleen To: Tvrtko Ursulin Cc: linux-kernel@vger.kernel.org, tvrtko.ursulin@linux.intel.com, Tvrtko Ursulin , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Madhavan Srinivasan , Alexey Budankov , x86@kernel.org Subject: Re: [RFC 3/5] perf: Allow per PMU access control Message-ID: <20180927201559.GH28040@tassilo.jf.intel.com> References: <20180919122751.12439-1-tvrtko.ursulin@linux.intel.com> <20180919122751.12439-4-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180919122751.12439-4-tvrtko.ursulin@linux.intel.com> 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 > + mutex_lock(&pmus_lock); > + list_for_each_entry(pmu, &pmus, entry) > + pmu->perf_event_paranoid = sysctl_perf_event_paranoid; > + mutex_unlock(&pmus_lock); What happens to pmus that got added later? The rest looks good. Can you post a non RFC version? -Andi