Bug 27062 - perf vendor events riscv: add lrw core JSON file with metric support
Summary: perf vendor events riscv: add lrw core JSON file with metric support
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: debugability (show other bugs) debugability
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xiangzao
QA Contact: shuming
URL:
Whiteboard:
Keywords: HwEnablement, Performance, Tracking
Depends on:
Blocks:
 
Reported: 2025-11-13 16:38 UTC by liuqingtao
Modified: 2025-11-13 16:38 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liuqingtao 2025-11-13 16:38:26 UTC
This patch adds JSON file for lrw core events, establishing a mapping mechanism between standard performance event names and hardware event codes. This allows users to specify monitoring events via semantic names (e.g., L1D_CACHE_REFILL) instead of traditional hardware encodings.
Furthermore, this patch introduces metric definitions for the LRW RISC-V core in the vendor event JSON file. These metrics provide higher-level performance insights by aggregating and interpreting low-level hardware events, enabling semantic analysis through perf stat -M.