ENUM RISCV_IOMMU_HPMEVENT_ID(9)
β¨ NAME β¨
enum riscv_iommu_hpmevent_id β the performance-monitoring event identifier, bestie π
Ok so real talk, this is the enum that tells the RISC-V IOMMU which performance event you're counting. Every counter you point at one of these and it's like "okay girl, I'll track that for you" β¨
πΈ SYNOPSIS πΈ
enum riscv_iommu_hpmevent_id {
RISCV_IOMMU_HPMEVENT_INVALID ,
RISCV_IOMMU_HPMEVENT_URQ ,
RISCV_IOMMU_HPMEVENT_TRQ ,
RISCV_IOMMU_HPMEVENT_ATS_RQ ,
RISCV_IOMMU_HPMEVENT_TLB_MISS ,
RISCV_IOMMU_HPMEVENT_DD_WALK ,
RISCV_IOMMU_HPMEVENT_PD_WALK ,
RISCV_IOMMU_HPMEVENT_S_VS_WALKS ,
RISCV_IOMMU_HPMEVENT_G_WALKS ,
RISCV_IOMMU_HPMEVENT_MAX
};
π Constants π
Like, here's the whole roster, no gatekeeping π«Ά
RISCV_IOMMU_HPMEVENT_INVALIDβ the "nah, don't count anything" event. Invalid, literally do not count, it's giving placeholder energy πRISCV_IOMMU_HPMEVENT_URQβ untranslated requests πRISCV_IOMMU_HPMEVENT_TRQβ translated requests π«RISCV_IOMMU_HPMEVENT_ATS_RQβ ATS translation requests π¦RISCV_IOMMU_HPMEVENT_TLB_MISSβ TLB misses π (and yeah, there will be a lot of them)RISCV_IOMMU_HPMEVENT_DD_WALKβ device directory walks πΆββοΈRISCV_IOMMU_HPMEVENT_PD_WALKβ process directory walks πΆββοΈπΆββοΈRISCV_IOMMU_HPMEVENT_S_VS_WALKSβ first-stage page table walks, our main character β¨RISCV_IOMMU_HPMEVENT_G_WALKSβ second-stage page table walks, the sequel π¬RISCV_IOMMU_HPMEVENT_MAXβ the sentinel value that denotes the maximum Event IDs, iykyk π
π¦ SEE ALSO π¦
Kernel file ./drivers/iommu/riscv/iommu-bits.h β and the whole enum friend group, fr fr:
enum riscv_iommu_igs_settings(9), enum riscv_iommu_ddtp_modes(9), struct riscv_iommu_dc(9), enum riscv_iommu_dc_iohgatp_modes(9), enum riscv_iommu_dc_fsc_atp_modes(9), struct riscv_iommu_pc(9), struct riscv_iommu_command(9), struct riscv_iommu_fq_record(9), enum riscv_iommu_fq_causes(9), enum riscv_iommu_fq_ttypes(9), struct riscv_iommu_pq_record(9), struct riscv_iommu_msipte(9)
Lowkey obsessed with this one, ngl. Go read the whole squad π
That's the whole vibe check, bestie π§ this came from ./drivers/iommu/riscv, dated October 2026, and it's the enum riscv_i..._hpmevent_id(9) page β slay, go count some events π
πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms