Skip to content

Instantly share code, notes, and snippets.

View lyctw's full-sized avatar

Peter Lin lyctw

View GitHub Profile
@lyctw
lyctw / RISC-V_perf_COSCUP2023.md
Last active July 28, 2023 08:39
Exploring RISC-V Perf Event Profiling

協作者:

  • Yu Chien Peter Lin <peterlin@andestech.com>

perf 自 Linux 5.18 後標準規格與軟硬體實作 (Sscofpmf, SBI PMU, Linux perf driver) 已經成熟,取代 RISC-V legacy perf,並且 AndesCore™ AX65 是第一個支援 Sscofpmf 的 Andes A系列 CPU, 取代了 45 系列以前的 Andes HPM (真是鬆一口氣阿XDDDD)。本文先簡介 perf 指令基本用法,接著是 ISA 層級的 Sscofpmf 規格、SBI 的 PMU extension 提供的界面,嘗試整理 RISC-V 架構上的現況。

Glossary

| 名詞 | 描述