Thread (19 messages) 19 messages, 5 authors, 2023-08-30

Re: [PATCH v6 10/10] perf: tests: Adapt mmap-basic.c for riscv

From: Ian Rogers <irogers@google.com>
Date: 2023-08-14 16:45:49
Also in: linux-doc, linux-perf-users, linux-riscv, lkml

On Wed, Aug 2, 2023 at 1:14 AM Alexandre Ghiti [off-list ref] wrote:
riscv now supports mmaping hardware counters to userspace so adapt the test
to run on this architecture.

Signed-off-by: Alexandre Ghiti <redacted>
Reviewed-by: Andrew Jones <redacted>
Reviewed-by: Atish Patra <redacted>
Reviewed-by: Ian Rogers <irogers@google.com>

Thanks,
Ian
quoted hunk ↗ jump to hunk
---
 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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help