English

Supporting RISC-V Performance Counters through Performance analysis tools for Linux (Perf)

Performance 2021-12-23 v1

Abstract

Increased attention to RISC-V in Cloud, Data Center, Automotive and Networking applications, has been fueling the move of RISC-V to the high-performance computing scenario. However, lack of powerful performance monitoring tools will result in poorly optimized applications and, consequently, a limited computing performance. While the RISC-V ISA already defines a hardware performance monitor (HPM), current software gives limited support for monitoring performance. In this paper we introduce extensions and modifications to the Performance analysis tools for Linux(perf/perf_events), Linux kernel, and OpenSBI, aiming to achieve full support for the RISC-V performance monitoring specification. Preliminary testing and evaluation was carried out in Linux 5.7 running on a FPGA booted CVA6 CPU, formerly named Ariane, showing a monitoring overhead of 0.283%.

Keywords

Cite

@article{arxiv.2112.11767,
  title  = {Supporting RISC-V Performance Counters through Performance analysis tools for Linux (Perf)},
  author = {Joao Mario Domingos and Pedro Tomas and Leonel Sousa},
  journal= {arXiv preprint arXiv:2112.11767},
  year   = {2021}
}
R2 v1 2026-06-24T08:27:35.829Z