Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:RISCV
kvm_stat
riscv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File riscv.patch of Package kvm_stat
From 8f3146f46182d765a54f2f34a2837a302fcb0186 Mon Sep 17 00:00:00 2001 From: Andreas Schwab <schwab@suse.de> Date: Thu, 10 Aug 2023 17:20:14 +0200 Subject: [PATCH] tools/kvm_stat: add support for riscv Signed-off-by: Andreas Schwab <schwab@suse.de> --- tools/kvm/kvm_stat/kvm_stat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 15bf00e79e3f..05220b9d07dc 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -320,6 +320,8 @@ class Arch(object): return ArchA64() elif machine.startswith('s390'): return ArchS390() + elif machine.startswith('riscv'): + return ArchRISCV() else: # X86_64 for line in open('/proc/cpuinfo'): @@ -396,6 +398,18 @@ class ArchS390(Arch): return 'exit_instruction' +class ArchRISCV(Arch): + def __init__(self): + self.sc_perf_evt_open = 241 + self.ioctl_numbers = IOCTL_NUMBERS + self.exit_reason_field = None + self.exit_reasons = None + + def debugfs_is_child(self, field): + """ Returns name of parent if 'field' is a child, None otherwise """ + return None + + ARCH = Arch.get_arch() -- 2.42.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor