Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp978348rdb; Tue, 15 Aug 2023 19:35:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEscurJj6obkOW1umaQ9udMQ1tjHKt4MQHCGaCIw5BHNFCwfYDaMAJhZJ3Mx9aoEbnyhOdm X-Received: by 2002:a05:6a20:7f92:b0:134:9868:812e with SMTP id d18-20020a056a207f9200b001349868812emr754829pzj.39.1692153328042; Tue, 15 Aug 2023 19:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692153328; cv=none; d=google.com; s=arc-20160816; b=yvynWUZm2rQc1y9OxtgEKrH1prykAtdws+KDPz59huGMwxiuuG02az2pI1TEI6CTDP hgk6FQELg/Iz2p+8FwLdYMJjdMFY/pjryYOO+d+mvPk6Ip64Ah8IHOBzsH0WqG4MNE+X U83M6UGXcBm823K7rH8+dWv7+pLcpXoROhKRDrYVpArz+38smFVJujucT/dA0psj0JKF wsGjtdYl2FKGyr3+QXNog/vnP60Vvdtrv1dm2ea6Jx0PVLoB/5uCqZ/LFjJwktHH6M+g /aFv8IOSj3aszNr2KHBiVXHukyBzHRF4dTgJU/s6FMPYRWBoVLpc8WWj03HH9MGDnWIg Wf5Q== 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=NcH3MbcmaQtEb8CZ/TmIJ1Va7X5hDyCbzaHQ5CUJ5JM=; fh=PLqKwzzhs16LkIzlrulORyed5gJfrt1mS0J5uT6/ZzA=; b=HBzkSEkTQ6RgRcwx8Ez+pEoBonkDKoDNwR5Z5AvrkqLn71P7eBupGpAV3CdEmaAZKq fdQwLykkdbR2kSlboOIm4flzEowNW5rPM6OUI7N2UUPD2l/oycL/H3x4kyR5CdiLdUnx /r2LdAnAPQ5yXCNb/kk0rnzD0u65WqccsblN7d61uXpCSlJjl7TZy4xoGOyIiSL+hhVI 1X9bhX+xSBOhTTXUdqkLywLfT0Knsrwh8wcDIIgnrKDEfdkZ1pW5K1Jx7ehyr7Aez2eh tcUB7ZJjtmny2RYkZFk4Aj+ABAuwj1XteVP8ZfCzBUlRkvwl9ibaTtNZdEhPx4sLOuIW rH0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EM5zDvBW; 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 e7-20020a17090301c700b001b86ddfd49bsi10598256plh.6.2023.08.15.19.35.15; Tue, 15 Aug 2023 19:35: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=@kernel.org header.s=k20201202 header.b=EM5zDvBW; 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 S239097AbjHOS1R (ORCPT + 99 others); Tue, 15 Aug 2023 14:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239138AbjHOS0x (ORCPT ); Tue, 15 Aug 2023 14:26:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80C5C1BEB; Tue, 15 Aug 2023 11:26:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1396663F2B; Tue, 15 Aug 2023 18:26:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 494A9C433C7; Tue, 15 Aug 2023 18:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692124010; bh=GtF+IvGHB4Z4BZ8g2oDDGN+Mv2CJPMog9By/QT4FL4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EM5zDvBWlYret5z1Qx59Uzh/QpcQK3QuWeUwer3GNul+PYlGMnrJ30EedNZcQ0nxs EiDfxrn3yzaYr8s6F5yPVJWAKPWVuEZxx4p9wlLvkNF9mkZDMyuBYQeMxdFz9d+Tu7 M7pabO+YQvohFe7s3K4MaFZLRFVgdsls4WJmwzQJb1mBoyOpuAHAq9gQy4B2P7ZacH dyT1J9u7ke4/zx1PBsAfK9XyaTtJNP2MRslzsGsT7kmh4PUFAxZtIaPnv8GZriqwoB 3mheMfQNgmE+E2Okfw1r2+VJ2/xOgBI+pk8ql+x25p5xXEUB4IThqqG+co4UCJ/NB6 PjKhOmdPPr0SA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 54185404DF; Tue, 15 Aug 2023 15:26:47 -0300 (-03) Date: Tue, 15 Aug 2023 15:26:47 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Alexandre Ghiti , Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Rob Herring , Andrew Jones , =?iso-8859-1?Q?R=E9mi?= Denis-Courmont , 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, Atish Patra Subject: Re: [PATCH v6 10/10] perf: tests: Adapt mmap-basic.c for riscv Message-ID: References: <20230802080328.1213905-1-alexghiti@rivosinc.com> <20230802080328.1213905-11-alexghiti@rivosinc.com> 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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, Aug 14, 2023 at 09:44:58AM -0700, Ian Rogers escreveu: > On Wed, Aug 2, 2023 at 1:14 AM 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 > > Reviewed-by: Andrew Jones > > Reviewed-by: Atish Patra > > Reviewed-by: Ian Rogers Thanks, applied. - Arnaldo > Thanks, > Ian > > > --- > > tools/perf/tests/mmap-basic.c | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c > > index e68ca6229756..886a13a77a16 100644 > > --- a/tools/perf/tests/mmap-basic.c > > +++ b/tools/perf/tests/mmap-basic.c > > @@ -284,7 +284,8 @@ 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__) || \ > > + (defined(__riscv) && __riscv_xlen == 64) > > "permissions" > > #else > > "unsupported" > > @@ -292,7 +293,8 @@ 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__) || \ > > + (defined(__riscv) && __riscv_xlen == 64) > > "permissions" > > #else > > "unsupported" > > -- > > 2.39.2 > > -- - Arnaldo