summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2026-04-09 13:56:37 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2026-04-09 13:56:37 +0300
commit11c840192768a5a63b6aed75273c5e8e416230ee (patch)
treec2ab9832598c32a6bccfcfe2da38deaa693374a5 /include
parentfa19ea9a7bdb97575e05d72305a4c40a3a631357 (diff)
downloadlinux-11c840192768a5a63b6aed75273c5e8e416230ee.tar.xz
KVM: LoongArch: selftests: Add basic PMU event counting test
Introduce a basic PMU test that verifies hardware event counting for four performance counters. The test enables the events for CPU cycles, instructions retired, branch instructions, and branch misses, runs a fixed number of loops, and checks that the counter values fall within expected ranges. It also validates that the host supports PMU and that the VM feature is enabled. Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions