diff options
author | Atish Patra <[email protected]> | 2024-04-20 08:17:39 -0700 |
---|---|---|
committer | Anup Patel <[email protected]> | 2024-04-26 13:14:12 +0530 |
commit | 4ace2573d13ee22ebc5bb90efca6c2c9b27b2ef8 (patch) | |
tree | 32b11eb546b69a21b2be2e2343411fcdc823e5f7 /include/linux/overflow.h | |
parent | 13cb706e28d9d4d3259954eb08c57b990e4429ea (diff) |
KVM: riscv: selftests: Add a test for counter overflow
Add a test for verifying overflow interrupt. Currently, it relies on
overflow support on cycle/instret events. This test works for cycle/
instret events which support sampling via hpmcounters on the platform.
There are no ISA extensions to detect if a platform supports that. Thus,
this test will fail on platform with virtualization but doesn't
support overflow on these two events.
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions