riscv: Add riscv64 support

Update to v0.6-25

Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
This commit is contained in:
Mingzheng Xing 2023-09-17 11:15:49 +08:00
parent e6e37ae402
commit 4119e9ac5c
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 79a1955551c06966370cc9fee4cec381de27eb54 Mon Sep 17 00:00:00 2001
From: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
Date: Sun, 17 Sep 2023 21:59:48 +0800
Subject: [PATCH] riscv: Add riscv64 support
Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
---
iotop/ioprio.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iotop/ioprio.py b/iotop/ioprio.py
index d292add..ba804c8 100644
--- a/iotop/ioprio.py
+++ b/iotop/ioprio.py
@@ -34,6 +34,7 @@ IOPRIO_GET_ARCH_SYSCALL = [
('ia64*', '*', 1275),
('parisc*', '*', 268),
('ppc*', '*', 274),
+ ('riscv64', '*', 31),
('s390*', '*', 283),
('sparc*', '*', 218),
('sh*', '*', 289),
@@ -49,6 +50,7 @@ IOPRIO_SET_ARCH_SYSCALL = [
('ia64*', '*', 1274),
('parisc*', '*', 267),
('ppc*', '*', 273),
+ ('riscv64', '*', 30),
('s390*', '*', 282),
('sparc*', '*', 196),
('sh*', '*', 288),
--
2.23.0

View File

@ -1,6 +1,6 @@
Name: iotop Name: iotop
Version: 0.6 Version: 0.6
Release: 24 Release: 25
Summary: Simple top-like I/O monitor Summary: Simple top-like I/O monitor
License: GPLv2+ License: GPLv2+
URL: http://guichaz.free.fr/iotop/ URL: http://guichaz.free.fr/iotop/
@ -21,6 +21,7 @@ Patch8: 0008-Print-the-titles-at-specific-locations.patch
Patch9: 0009-Improve-the-message-that-is-printed-when-Linux-tasks.patch Patch9: 0009-Improve-the-message-that-is-printed-when-Linux-tasks.patch
Patch10: 0010-Fix-crash-due-to-syntax-error.patch Patch10: 0010-Fix-crash-due-to-syntax-error.patch
Patch11: 0011-Use-monotonic-time-to-calculate-durations.patch Patch11: 0011-Use-monotonic-time-to-calculate-durations.patch
Patch12: 0012-riscv-Add-riscv64-support.patch
%description %description
iotop watches I/O usage information output by the Linux kernel (requires 2.6.20 or later) and iotop watches I/O usage information output by the Linux kernel (requires 2.6.20 or later) and
@ -58,6 +59,9 @@ This contains man files for the using of iotop
%{_mandir}/man8/iotop.* %{_mandir}/man8/iotop.*
%changelog %changelog
* Sun Sep 17 2023 Mingzheng Xing <xingmingzheng@iscas.ac.cn> - 0.6-25
- riscv: Add riscv64 support
* Tue Jul 26 2022 wangzhiqiang <wangzhiqiang95@huawei.com> - 0.6-24 * Tue Jul 26 2022 wangzhiqiang <wangzhiqiang95@huawei.com> - 0.6-24
- DESC: specify the installation path as usr/sbin - DESC: specify the installation path as usr/sbin