Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5723485rwd; Mon, 5 Jun 2023 07:45:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TYvNlCpr4/03jGoV/YKoehhHAxID6jKrct2UbS5w1oCCzG61qaw+DlJIeUZjEKgQCncdP X-Received: by 2002:a05:6a20:1602:b0:104:35ec:c25c with SMTP id l2-20020a056a20160200b0010435ecc25cmr3019788pzj.41.1685976343983; Mon, 05 Jun 2023 07:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685976343; cv=none; d=google.com; s=arc-20160816; b=HkEtRNqlkbLgWuynW+k1ulJQi5ceClver8Jju9mo2GoXq7Ge0bEu9HYL3ML0ESgHEu Dev4y2j+TgtGLd+KeHPeMWPv17nEsWUQgJBrOj8KMrXpygxo/IAjW+0IwKmvfVfxBClX 0hYuAwwcwiW/6DdAMNd3O7lFRURztDohEQMQd4ZrP05TlmhJK+hEaUtuOKtv8Yg+7hOI QmptkvT5JtQ89zxt8gGO3FgwsluTfFcikrIn1/DqFuTdoVbrUnOzVHkrkFLfi3J6k8zM rwOehWrzGVDvzH0DVSs14+fIfT+wJEyMmlwWaKviUY8Bnu4gTtBjSC6sfVGrjT/GwhwO akNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3TpTdF2O/cApQ1f8cCRIskXNZxv29sK1ejd0fKQhf0A=; b=L7rqChplGYNZB5ugi/BeY1qjGn1v5bPD6Ev+a2ftY/6uZNDGsiXDbLzGZ0a19BuTls XPcs4gjM5Aa+SzAdFfQFWrSvFFbj+A46vWWkjmoAD0aIb1v0VTwkrdWkWGg4nQYvk17c L2SPP7hp6zXZ73hq3B3/FXT8oerlkw/FE3pdj5GSLOyNGZ/gRXXqv6s3NKev0rzwmIVz u9vcsFl74b2jlOAMa76W7moYeiep5ST/xTPLpJs+joC2o/YcQMvxCh+Yx7Y+n8EIQBP+ S6mzvrapLsRRjYfXC6eg4+QBfOvq7g1tQU0LrLujjqna9T/b/uhGOVYb6H4/Z2lkTQ6o guDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=C0kOoFwZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q30-20020a63751e000000b0053ef5472644si5541914pgc.482.2023.06.05.07.45.21; Mon, 05 Jun 2023 07:45:43 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=C0kOoFwZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234380AbjFEODf (ORCPT + 99 others); Mon, 5 Jun 2023 10:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233862AbjFEODY (ORCPT ); Mon, 5 Jun 2023 10:03:24 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD0A5196 for ; Mon, 5 Jun 2023 07:03:03 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f6042d605dso40785375e9.2 for ; Mon, 05 Jun 2023 07:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685973782; x=1688565782; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3TpTdF2O/cApQ1f8cCRIskXNZxv29sK1ejd0fKQhf0A=; b=C0kOoFwZI7gBQMp/Tv/Ev346Vqn39Qz6k9uo241DZp0B0A3B9BKADk+fVB9WNfdZNz apwt9PWDETqF2SOX7E/h0q1yEiCJ/lx4vxtysqO9QvufT13mqG6uc1LJ+6uEsUavKEA1 SKCzaEtMLdpl8bRC3mwCBzyvzw6lABO2K+NYuJAgZwZcqpH67c9AkVrba2xgjRAnv4a4 eukbdi3aBYszu+O8ojl8ip3il+ThyIlWjjdQPsR674II8p5cem7ZA9GA6r/v3QSbS1XL brRQyn5j73kOhV36J8ELB34s5rit/+/9MGYyyMJFhDTBUjGVSRGszf7kbNe65ucMMfdA YGcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685973782; x=1688565782; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3TpTdF2O/cApQ1f8cCRIskXNZxv29sK1ejd0fKQhf0A=; b=WDGFwPGYdr3AHBE2VB+7HHd/VY/AyDMm8wJu5oYUrXavtYmtrIyhnlYdWJSikfZGKY DMqN+3bvCV1suzrmOnXVpQS9RHNtk32XZl9J62x5aTPIxK5uuml0X0kvkricgYPaHKtC B14EQp6Jla1ywtnuj5UdwTrNjUM0OlpRytqmbw7I8i8mJUKAYL7eJtxbgOmT9qO49xts 6arF7vbkIDvOHYvXMbTv1jTd/3sMtA1NloCHBMz12ICv+Hw5S4N2BMsHpQy7TvyzXN59 2SnPw/+vMUxSaFfcn2zvCenOcrINAcnm9R8q+lE07Kiouk2kdorXfBxplDJaHh84jSmi T5JA== X-Gm-Message-State: AC+VfDwxk+jt4TXHE9G+1g31De4YQ/NssGdIjB8SEjc9AYxcqFlk8kUE 80XcYTFOxIsRQcYEx6t+wndxxSdvTN4neehJtag5ug== X-Received: by 2002:a5d:5490:0:b0:30e:3e6f:3682 with SMTP id h16-20020a5d5490000000b0030e3e6f3682mr2185459wrv.5.1685973782326; Mon, 05 Jun 2023 07:03:02 -0700 (PDT) MIME-Version: 1.0 References: <20230512085321.13259-1-alexghiti@rivosinc.com> <20230512085321.13259-11-alexghiti@rivosinc.com> <20230531-31bd9ddeaca8cb338f81ed14@orel> In-Reply-To: From: Alexandre Ghiti Date: Mon, 5 Jun 2023 16:02:51 +0200 Message-ID: Subject: Re: [PATCH v2 10/10] perf: tests: Adapt mmap-basic.c for riscv To: Arnaldo Carvalho de Melo Cc: Andrew Jones , Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Rob Herring , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 (sorry mail client switched to html on its own) On Mon, Jun 5, 2023 at 3:53=E2=80=AFPM Arnaldo Carvalho de Melo wrote: > > Em Wed, May 31, 2023 at 05:15:15PM +0200, Andrew Jones escreveu: > > On Fri, May 12, 2023 at 10:53:21AM +0200, Alexandre Ghiti wrote: > > > riscv now supports mmaping hardware counters to userspace so adapt th= e test > > > to run on this architecture. > > > > > > Signed-off-by: Alexandre Ghiti > > > --- > > > tools/perf/tests/mmap-basic.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-ba= sic.c > > > index e68ca6229756..f5075ca774f8 100644 > > > --- a/tools/perf/tests/mmap-basic.c > > > +++ b/tools/perf/tests/mmap-basic.c > > > @@ -284,7 +284,7 @@ static struct test_case tests__basic_mmap[] =3D { > > > "permissions"), > > > TEST_CASE_REASON("User space counter reading of instructions", > > > mmap_user_read_instr, > > > -#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) > > > +#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)= || __riscv_xlen =3D=3D 64 > > > "permissions" > > > #else > > > "unsupported" > > > @@ -292,7 +292,7 @@ static struct test_case tests__basic_mmap[] =3D { > > > ), > > > TEST_CASE_REASON("User space counter reading of cycles", > > > mmap_user_read_cycles, > > > -#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) > > > +#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)= || __riscv_xlen =3D=3D 64 > > > "permissions" > > > #else > > > "unsupported" > > > -- > > > 2.37.2 > > > > > > > Reviewed-by: Andrew Jones > > Was the kernel part merged upstream? No, I still haven't answered the reviews :) > > - Arnaldo