From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8E3EEB64DD for ; Tue, 4 Jul 2023 12:28:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231650AbjGDM2Y (ORCPT ); Tue, 4 Jul 2023 08:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjGDM2W (ORCPT ); Tue, 4 Jul 2023 08:28:22 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C58C10CF for ; Tue, 4 Jul 2023 05:28:20 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-63588812c7aso23787956d6.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=fYGbFccjB1GoZ33lHVuOKOWKRXm2psgEnuafvsNKST8EsnoPD2RCqRFE4QTGyuyNok bavKr+mVbl6Ubp3sRidker0GcQLkp8YaCk6mvqdpHp6jivzTIUSBzPmnUjynUrAhgh5W Fh1ilf6lofZ1a9pNCEkuI3ikyOzTt1MdGWzeRPcJlGtDDM5OVkn6e2i5HeLbeuOJxCe4 p5v2+RfOO6g9aHwtGWyw4aDIHpSHLaGUqzKCWnUQ0J8EV6+Y9JAI74sygLveIl5zM4wW BEWU5JBsWxDwcC1BfeRy6/JDtdvxzbvYK1Ouuc2L05o3/pW7FZTKypuQTZa7Y2E7GdFc eOlw== X-Gm-Message-State: AC+VfDy45VOOjdqkzAdDjGtZoXrCDnft2wmK1awKJR2IiDaylaaV1xgh rRGCw19h7DlR16H+GXBLWdvMcw== X-Google-Smtp-Source: ACHHUZ6ytBJOoBgDRsxovcaKyYEdk2QBLDw+FxvVzCXKV9CmY3KSb9amNV59gJ8MDByp7CHlrPVdRA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-doc@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