tools: lib: perf: Implement riscv mmap support
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 2 Aug 2023 08:03:27 +0000 (10:03 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 16 Aug 2023 14:28:22 +0000 (07:28 -0700)
commit60bd50116484b84fcfcd0db55d6d821ff3a21541
tree9f3614d9d51e3786fee9885343335368f63d5f78
parent57972127b20ef9cb84fc214f7cfacaa7ab884a38
tools: lib: perf: Implement riscv mmap support

riscv now supports mmaping hardware counters so add what's needed to
take advantage of that in libperf.

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/lib/perf/mmap.c