Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2219337rwp; Fri, 14 Jul 2023 02:46:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAINRmMFCcyZvchhC1/VZssiZwfkSFsGEHP47hIgIPiiAHkfRzB2xYrX4w62gAGZ/BOZF/ X-Received: by 2002:a17:906:7d88:b0:98d:76f8:217b with SMTP id v8-20020a1709067d8800b0098d76f8217bmr3471685ejo.73.1689327991412; Fri, 14 Jul 2023 02:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689327991; cv=none; d=google.com; s=arc-20160816; b=ou80nHD6YKu7cnbp5eXItjiJ8bd9ZiTF5LQGxNmjptVX4Rt8ckCZukhbKjd/dgfudQ L7kmVVUXyPejWtzN3a6GD1EJL0Y5zmEMKUL2+Dc1n4jvAh1mWdM/Wrf2roJI6btsO9oO scL+xU3vKC+al8QqUgiXRTbTB78toX6ZgSfUyolpkzOFfCmm69yRscR/kM0S3pwBHcE0 6oopNBkGTjFkCyCdxJBp3LX/pfQ6t3YW8ajZkNrdIUpJUQ2WbHgRG9+c7rerfIVEzw3/ oASZMo8gQ/TKlLDe9QQuspRW0zmXae0ZF1i0PcwDTVNgJJGSfA1T7TOCS4WI7r01AG+K 1MCw== 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=dosegy5s6S3Py/sYCBb7fr6YwHTMUrv8EM9f77WeMOc=; fh=y2M5v1gYeu0HYmN0hofCIqVy6M5fV8gJXE/fccYEzwc=; b=ufhLRTZVEsL0tFUEwBzWWTNreVttaeRM0ghJwmct44JAeSjdBmfAWxnGgi/Q69/rw4 DMkx2mku/7oTM4Bn8sQaT2VvNX0sCaRIQgT8hfeZFOMHZ8OOf9DS4/Q3Atats7yDA1KR F7BRZk6B/mRh8FuN0w1cOqyviPJDnI2E0KBDG3ms/mHIPKo9irsFiBCCcr2yvIT6yyBR 1X0RNNs/rzJkabRmexd+WzklvaziPRz3bkLm4VK/nobctTredgyKOq6v131VvnR1Mf9y xCJ/fsnYdOcPy0jc3dapny7zeJ1P8IdAMXE2BmpzOTntHcgHXRbZuCYJMXJRT9H7T9JX bPHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=Xqcw23ip; 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 e11-20020a1709067e0b00b00992f81122e9si8283822ejr.340.2023.07.14.02.46.07; Fri, 14 Jul 2023 02:46:31 -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=@atishpatra.org header.s=google header.b=Xqcw23ip; 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 S235207AbjGNJaQ (ORCPT + 99 others); Fri, 14 Jul 2023 05:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235791AbjGNJaL (ORCPT ); Fri, 14 Jul 2023 05:30:11 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F9532D5F for ; Fri, 14 Jul 2023 02:30:09 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b701e1c80fso24820831fa.2 for ; Fri, 14 Jul 2023 02:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; t=1689327008; x=1691919008; 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=dosegy5s6S3Py/sYCBb7fr6YwHTMUrv8EM9f77WeMOc=; b=Xqcw23ipPcPee2KGDUUmScxC6YI+Lt+tpZLhyiWzpqBFRO340fdakn0xdVV1NlwZYo 8LZbDjW6NUOsDs0GB/lm0oM1oxUlYm5/QtzGj1+yTps3jl6EW1l2EbnJeFvc6s69+PMu 3etpZNsNrgUTw2j28xUGW6FsyP7PGWyvOkhIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689327008; x=1691919008; 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=dosegy5s6S3Py/sYCBb7fr6YwHTMUrv8EM9f77WeMOc=; b=M+DtQBWiwDIqVmkJnLhdVFObnulm3VnfBZ0Ky8NAr03FDNUGmTPHLuTUale0TzLAng 3Hgl3VrmvC1n28bCZ6xWx4XoLbrS1S7h/BsADjNoG3YDVQAN2HEPrWNS6N8bMxbhBmrp uhYU2dTL3otMdVcZcPBHgWCrEmujJM/tjji+rdCac1rbQAnQRpg4uSDa4K8r87b2TpmL 3YtEuxnwsMWAi/UpMGxxl+Z4PpF6NWzsXR5kdnnn/NHEiI4CNgcv6KUrei1qLpM3ANV3 b7xQefTZjvJjpv7KLKWsX7rHJZ8rsWLtCeHZsszUwMTR9eLc8jVHAw4tMnBnPXHuzkXG pKlQ== X-Gm-Message-State: ABy/qLZG9g4Ddz4WT1Iqk/Nu3UXIJMJ8INhjIVRh07s/n97Ll1BfiPBT 9l1KcnnDQ8N6+QUTm+kgCQg3ONcwAh0KSLGoYKv0 X-Received: by 2002:a2e:a16f:0:b0:2b6:d57f:d81 with SMTP id u15-20020a2ea16f000000b002b6d57f0d81mr3198367ljl.53.1689327007925; Fri, 14 Jul 2023 02:30:07 -0700 (PDT) MIME-Version: 1.0 References: <20230703124647.215952-1-alexghiti@rivosinc.com> <20230703124647.215952-11-alexghiti@rivosinc.com> In-Reply-To: <20230703124647.215952-11-alexghiti@rivosinc.com> From: Atish Patra Date: Fri, 14 Jul 2023 02:29:56 -0700 Message-ID: Subject: Re: [PATCH v4 10/10] perf: tests: Adapt mmap-basic.c for riscv 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 , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Mon, Jul 3, 2023 at 5:57=E2=80=AFAM Alexandre Ghiti wrote: > > riscv now supports mmaping hardware counters to userspace so adapt the te= st > to run on this architecture. > > Signed-off-by: Alexandre Ghiti > Reviewed-by: Andrew Jones > --- > 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[] =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.39.2 > Reviewed-by: Atish Patra --=20 Regards, Atish