Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5727030rwd; Mon, 5 Jun 2023 07:48:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DdRZ2QdnNXjAQ/GOfR4TJH8fG/xowpPMi8RiWRQ79jcSDqQg7bppTy3NM2SVnAnuduBeD X-Received: by 2002:a17:90b:2283:b0:256:540d:b54a with SMTP id kx3-20020a17090b228300b00256540db54amr8516901pjb.8.1685976533415; Mon, 05 Jun 2023 07:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685976533; cv=none; d=google.com; s=arc-20160816; b=hM3yf/8P/kFWYkAWKLILeGEQNmFaEs+9cKJ+PILxo9ciuMgmqh920fuUeHZHh8ga3e L3pqSdAkWnGdsQjC79UmmWOa4vpH3k4I+edqqF06+00HLeORia6zAVGWgwk6Mph+CXev 9I+kJnU8DlyrrcALZ75JSrJh8KaAialKMGOrA96g2DwK540BR4DpmybfJCC4y0soQLB4 I6H+zqVjARTAxbFEovhg9nosi06PZBIgfZ8mh6Ia3R41S1NaN7++PKhgoH6vGKXCV0CY mqg21iyXLLN9bb0wpWS0c/zUJ5YzHNmkej3F/sQnU4OihA5W9nTumK36K+3TEVhAI7kS uzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BiPvjTv/FYunN657bgF+yNRJOdTpXopCkXASdTpg1Uc=; b=I6g8l9AFei3v4F1LpDm2t38ba7NsZrQNLMR0AO7VbFkunIaGZU8BpYmNYqBUujHTOC Ugppy4sxTS7ezHAHc71fLlxaJkvdUUiGJ74rY1Ocg68Rg41Jeqy8XMEA0qrqf9+uNT2N 7Z1kRTNll6h9J1s+RwmHHczjRwLQBeVps1/QZ6F8tcADtDTDDfI3QNKNrSGigYBEfs4/ xWQyiKlx5Opu5h3+7pfdgVdhyH0TtOFUIwbMqeop9HiScFOAfYKcg13svk5lH9mUED53 R4R5pN5NGnNhKur9AcOEKbJmCxVgKPWa9evO4ky8WOqFV0BJ6RfiNhUjmoztY1H8RGAm 3rUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ipUDWWw9; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w184-20020a6382c1000000b00542232db0dcsi5627920pgd.792.2023.06.05.07.48.38; Mon, 05 Jun 2023 07:48:53 -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=@kernel.org header.s=k20201202 header.b=ipUDWWw9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233942AbjFEObm (ORCPT + 99 others); Mon, 5 Jun 2023 10:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbjFEObl (ORCPT ); Mon, 5 Jun 2023 10:31:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D85E9; Mon, 5 Jun 2023 07:31:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C1A462077; Mon, 5 Jun 2023 14:31:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3745BC4339B; Mon, 5 Jun 2023 14:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685975499; bh=mrOtizINhh5fwcPJizUYE/rj2XWhdL1zZyiYvybGQy0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ipUDWWw91EH6WtuSoZK4XL6EcAt2gTqwhl+h3IOz3di7bYV00b/T/zOXk/p4Ju31h c4AdttDWyfVpNILj2dEM9x3F7vusCqfB7bxt/TejnJmyRkzif3EKIcXYl54VxmHKL8 bQiIp0oLAoAsQVlNh2rbhqLTeLSXShn6is1Y2aaewZav/zEEUisL9ZxpxYm6KzuPVJ oh7IxDtgC1Xse94PiLhzHr2teO1eAlow7zSV9NbMbL10lLxSL83SE87Fqm3WEwOYqE 2bUuLcFRAC1Mqxbx77lvECE55OK9AO+2snJL279hxAz51Aai6EevkbrgBQ0HmrEy2Q F0pvcXDa5IP7w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E3B0240692; Mon, 5 Jun 2023 11:31:36 -0300 (-03) Date: Mon, 5 Jun 2023 11:31:36 -0300 From: Arnaldo Carvalho de Melo To: Alexandre Ghiti 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 Subject: Re: [PATCH v2 10/10] perf: tests: Adapt mmap-basic.c for riscv Message-ID: References: <20230512085321.13259-1-alexghiti@rivosinc.com> <20230512085321.13259-11-alexghiti@rivosinc.com> <20230531-31bd9ddeaca8cb338f81ed14@orel> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Em Mon, Jun 05, 2023 at 04:00:12PM +0200, Alexandre Ghiti escreveu: > On Mon, Jun 5, 2023 at 3:53 PM 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 the > > 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-basic.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[] = { > > > > "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 == 64 > > > > "permissions" > > > > #else > > > > "unsupported" > > > > @@ -292,7 +292,7 @@ static struct test_case tests__basic_mmap[] = { > > > > ), > > > > 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 == 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 :) Ok, I'll then wait for it to happen to consider merging the userland parts, Thanks, - Arnaldo