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 5975DC04A6A for ; Tue, 15 Aug 2023 18:27:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233315AbjHOS1Q (ORCPT ); Tue, 15 Aug 2023 14:27:16 -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 Precedence: bulk List-ID: X-Mailing-List: linux-doc@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