diff options
| author | Song Gao <gaosong@loongson.cn> | 2026-04-09 18:56:37 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-04-09 18:56:37 +0800 |
| commit | 11c840192768a5a63b6aed75273c5e8e416230ee (patch) | |
| tree | c2ab9832598c32a6bccfcfe2da38deaa693374a5 /scripts/stackusage | |
| parent | fa19ea9a7bdb97575e05d72305a4c40a3a631357 (diff) | |
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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
