Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27632168rwd; Tue, 4 Jul 2023 05:51:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4A7TF0wgutyL8QtLY/DK9Ku0EI0iNuEDNMF9Mr8ighJTYRBDGkOk4Fseuz0tDZqVFdb61j X-Received: by 2002:a05:6a20:3d2a:b0:125:c3f7:f863 with SMTP id y42-20020a056a203d2a00b00125c3f7f863mr26832609pzi.8.1688475088667; Tue, 04 Jul 2023 05:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688475088; cv=none; d=google.com; s=arc-20160816; b=AF9SqEsXTlILiVworXtAykVJqCTZpgJeVN3xVyRLGDkK28xZAIAxjIZFNpXZv0RyMx ry9lxNUTqk+jxrNaTqIFh6k0AhHJpe1K4/NqH2XBo1/ZJg8okwyixPuluHlXtLNqcb0m 4ZVZZ4fRX42lrBWO4Bhtij9YbeKvoP72ltds/2+X50newqb5hE8fwEZSL4jveLUJUOr9 P53MfYCGoHNr6YBctzEACDPyqPqF0hUUxLDrSjJAxznecmmxl1S6Dv12Kc12OOQZFJZY p9FBj/PmZ6YjUJPISE7Fcqt1IOlHNCScWmjvUBUhS332YX87J9Z3HowJzUXwZAyFwzH/ Lwvw== 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=l5YpNQ9k3FxEI6NyEQ6O/c948FLcVDYur8dACWC8IMo=; fh=/1odY5V24Brb7BIlDLXlMQaAVpjXM3cNCHrsHg5tB5k=; b=wVmz2FKlWVG2xNmjLjfD61HU+fnu2rWJA4vp2pMP743FbsjWxEJ+ZThRMXvAQM3No9 XvxP/mqxXpIiAP0YBRlctPnujsEgZCdm1t5sQGlRWg5vBfwbiPcMMVA9VmeDfUEcUvAy m+7s+xL3EErDyH11aqGx+Cw3c9fhCaF3OUUg8zXznCg57cyd/rvEh/qT0ZMkg1geOPo9 IlZ44lOQS1Nf05T5VG5UlG5ttODAxSCaAto/hUcltN6pW6RMFR6ZF09H6t7dNR8j1yc+ fXqNu2tFXjnGLZE1NZwOuxBhlnbiayASzOCQSogaYN69QaD2XtPi8hGxIQNUBWpYuvUe EEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=MKbpxpd3; 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 h129-20020a636c87000000b0055b53a564efsi9995935pgc.834.2023.07.04.05.51.16; Tue, 04 Jul 2023 05:51:28 -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=MKbpxpd3; 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 S230050AbjGDM2Z (ORCPT + 99 others); Tue, 4 Jul 2023 08:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbjGDM2V (ORCPT ); Tue, 4 Jul 2023 08:28:21 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A909E9 for ; Tue, 4 Jul 2023 05:28:20 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-635decc135eso23641596d6.0 for ; Tue, 04 Jul 2023 05:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; t=1688473699; x=1691065699; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:from:to:cc:subject:date:message-id:reply-to; bh=l5YpNQ9k3FxEI6NyEQ6O/c948FLcVDYur8dACWC8IMo=; b=MKbpxpd3h33Jur04KbPUrCLTlVIAAu5iv7+InZ2Ld/h7aQEoYZjAV/1l7GNlBXhBs/ SBy7ElK8A3XM0+bIPwHaC+MmN5ZHDIgtcMt0tbcTmJ/TCFBrs4T9BMNP4X7XwieicLlM 3Uf0jz/gYRqoPW9beXrjMAL/7Ilt9EiZwz9MQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688473699; x=1691065699; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l5YpNQ9k3FxEI6NyEQ6O/c948FLcVDYur8dACWC8IMo=; b=ceRglCcZ+Z++7cRcx+Rmw9P059OHRvhwbBoJvcOXkULqvdalRi0e7CIIZadOfSnFPa hSHIiT1Zw9HPtpztrZ82xUiLQepsPRUHXH7+7ioaCGtJz9XBwylWyEfrV437+WA2RUXy YzCbOygfldnRBZoOiCeK+T59AD9P1tAfQOKXCfCSfNNBSN03a4fR+NxUkslj+y5N3d0j D9ga9XhhN3LJ1hO3JbsnYxpbtoakIVvd9F7p8NgRkn+B8JA+N4hB31t1IsD9wPQ/ah51 RzGVoA6d/vHelXnV5uJKOFLDYzVPCe3HYBqvY36gCve2OJl4xmT0uTAwktLuMZafnqzz Q2ig== X-Gm-Message-State: AC+VfDwFDhHJTr7Ac5T+1cly12YiSU6hxUhy8Fib5Czx21a2P5zLoA/z DSPg0IRfsLcDFRc3vGpTUZHcEA== X-Received: by 2002:ad4:5ba6:0:b0:623:5c93:77eb with SMTP id 6-20020ad45ba6000000b006235c9377ebmr22037706qvq.13.1688473699061; Tue, 04 Jul 2023 05:28:19 -0700 (PDT) Received: from macbook-air.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id oj2-20020a056214440200b00631fc149a19sm1667137qvb.110.2023.07.04.05.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 05:28:18 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Tue, 4 Jul 2023 08:28:08 -0400 (EDT) To: Alexandre Ghiti cc: Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Rob Herring , Andrew Jones , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 08/10] Documentation: admin-guide: Add riscv sysctl_perf_user_access In-Reply-To: <20230703124647.215952-9-alexghiti@rivosinc.com> Message-ID: <72d2ad7a-601a-a06a-5587-3843971dddf3@maine.edu> References: <20230703124647.215952-1-alexghiti@rivosinc.com> <20230703124647.215952-9-alexghiti@rivosinc.com> 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,URIBL_BLOCKED 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 Mon, 3 Jul 2023, Alexandre Ghiti wrote: > -================================= > +perf_user_access (arm64 and riscv only) > +======================================= so I complained about this when support for this went in for arm64. Why do we have two separate ways of getting this info, one for x86 and one for arm64/riscv? Could we get x86 patched to use the same interface? It's a pain for tool users to have to maintain multiple code paths because the various architectures can't agree on how to export this info to userspace. Vince