perf: tests: Adapt mmap-basic.c for riscv
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 2 Aug 2023 08:03:28 +0000 (10:03 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 16 Aug 2023 14:28:23 +0000 (07:28 -0700)
commit26ba042414a35cb1fd7c31fae63841956ce7cecb
treeb0c18ac8e048473fb9fda6e99c5079e62a79d5bf
parent60bd50116484b84fcfcd0db55d6d821ff3a21541
perf: tests: Adapt mmap-basic.c for riscv

riscv now supports mmaping hardware counters to userspace so adapt the test
to run on this architecture.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Ian Rogers <irogers@google.com>
tools/perf/tests/mmap-basic.c