Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp792642iog; Fri, 17 Jun 2022 13:52:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBA9YnxjIfi6WV2PTCcEShgOLdtp1KlYoAknAouDOpGbeN0cET5/R4kFkm0pOVRawDoJYj X-Received: by 2002:a62:de84:0:b0:51b:e34b:ed2e with SMTP id h126-20020a62de84000000b0051be34bed2emr11931911pfg.86.1655499162557; Fri, 17 Jun 2022 13:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655499162; cv=none; d=google.com; s=arc-20160816; b=u8ZTftK5GdVVrHQ1y46roUOJEBsiEWvWtqNuyJf3bFGiPtdnsupHsuCrTrhFhc0AkQ lkc22fQmnmF25TYoWAoiGY21uC1WobjVFq7PfH7PUVr3xWF0vr8abrEw+/L9f6kJPPhf VNJX/kD33WxSl3d3Z3tpXPFcDljCAdbN6t2utmD4LqOrrH8zd3DyU9Tij8lv0u3uMNm4 KhIMPISFLH02NIERJP151HmYwutqF+NEVeaWJjH9CkYyflMGt+hztSDmfp6yewVT8k9z 4r7sTg6bVUi7SipUy4AniWnTrDQM4A7b+zUST6UbnSnWc9Fbqg2xL7TP8p3+xglJdMrw yQFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:date:from:dkim-signature; bh=5rlwEuaaxo2GmABtFmb86pra51ZtJdGFDNYMQBKtQiQ=; b=e9ZIawWDV4sXfY7K8UUCWJJFPb3doOGuEDtQ2WRSicuHr057HNaRtf0RkpliN0+qtX kXlecXFRJpz5VAYasSD67ZoT/Z5g/hhJ07Pe7v45IOouFsT7ZlRIbV0v6zFlET9n9pn6 d4GJ0Q9jW6nfd+9ewpDFWdKHLra/YKA3CVF4H2xYZrwNERG57oXXe5ef6yveFB7SC4c7 f17LC/aUFUh3oTGb8ffL72+ApL0hY+b0CY/J0ZzGWS/QkaAgKj5ulKEXZif08hNc+YT3 x7+gDzJmuJmJ9T0vCpbUuUtZdxl5uTyZSZKFs0HgtVPn0UX+ckP3xnqHaIOKXxZqGH6z y3kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=Amwtt37q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=maine.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d64-20020a633643000000b004051d97d38asi7584975pga.438.2022.06.17.13.52.31; Fri, 17 Jun 2022 13:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=Amwtt37q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=maine.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240437AbiFQUL3 (ORCPT + 99 others); Fri, 17 Jun 2022 16:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244943AbiFQULZ (ORCPT ); Fri, 17 Jun 2022 16:11:25 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 598252181A for ; Fri, 17 Jun 2022 13:11:22 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id l192so3905150qke.13 for ; Fri, 17 Jun 2022 13:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=5rlwEuaaxo2GmABtFmb86pra51ZtJdGFDNYMQBKtQiQ=; b=Amwtt37q0TAHLJo9OWoQ57m7cwEXUUlK9BNAjiGkATrr0ZnlYY/ZIWZXz5jhtubAwa ay6UvC5d7ucVemSZiVy72V4TFB4Hq7QzSsFxWzYE4hbfGxR6ASD5Oyt1WOrmnI/c3ZIn Lg+U0tl3lBi62sVy4m1xiSvrEv4rzBYDpz9hY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=5rlwEuaaxo2GmABtFmb86pra51ZtJdGFDNYMQBKtQiQ=; b=bQn/cTmk6PQs45R4xD1LRtcN6Jp7hhfK0BLYZ1q7jOzwpX2rLrVumOTHXsyXUBawyD HVjBIC7Uy59EsOJAtXpu18eNsr3SnGa+3+/HcT5viyVWr86LBFtW+vu4ZXln43L+G6DN b5iUeYfQARwaR5aVInPtgibtvsNHgHnINcGyN5ERhyXjj5+ihYY3hJkNISd6vaCM14/0 TmI/booOF9Y1LRO61pTFE+7acO/Si4jcPzdUnF5Sq1CVqA6SUHz0Ww5Zqmi80psfEo98 gSepwPujX1Rw+PpHcbqvw+Gy0NyTM2YQ5SpbM2UgZBsOaHXuOtDdtnuSa3ZLInEeq2b1 2DZQ== X-Gm-Message-State: AJIora8qCBn3oPh9+KpWd1lPQhdeuKY0Davk1zij1rpQk/u9e0XEib3P xl+xRGXM8pMIRrajIXKmK7KxdQ== X-Received: by 2002:a05:620a:4048:b0:6a7:7cb2:f48 with SMTP id i8-20020a05620a404800b006a77cb20f48mr8587526qko.578.1655496681451; Fri, 17 Jun 2022 13:11:21 -0700 (PDT) Received: from macbook-air.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id o12-20020a05620a2a0c00b006a726b03ad1sm5404695qkp.52.2022.06.17.13.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 13:11:20 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Fri, 17 Jun 2022 16:11:19 -0400 (EDT) To: Rob Herring cc: Vince Weaver , "linux-kernel@vger.kernel.org" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Catalin Marinas , linux-perf-users , Will Deacon , Mark Rutland Subject: Re: [perf] why is /proc/sys/kernel/perf_user_access ARM64 only? In-Reply-To: Message-ID: References: <30d95df2-c3b-b3e3-d65e-c6be0355fb1@maine.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jun 2022, Rob Herring wrote: > On Wed, Jun 15, 2022 at 11:57 AM Vince Weaver wrote: > > It turns out ARM64 has added a custom > > "/proc/sys/kernel/perf_user_access" > > to control rdpmc access, but only on ARM64. > > e2012600810c9ded81f6f63a8d04781be3c300ad > > > > Why is this ARM64-only? Why isn't this generic perf infrastructure? > > Adding it on x86 would break users at least if default off. Well in theory the file could have been added on x86 but default to on. Some of the low-level perf feature detection is bad enough as is, without having architecture-dependent proc files to worry about too. > > How is this different from the existing > > /sys/bus/event_source/devices/cpu/rdpmc > > tooling? > > big.LITTLE interesting. I wonder how x86 Alder Lake deals with things. In any case I guess it's really too late to do anything about this. I should check to make sure the manpage gets updated. Vince