diff --git a/0012-riscv-Add-riscv64-support.patch b/0012-riscv-Add-riscv64-support.patch new file mode 100644 index 0000000..612f38a --- /dev/null +++ b/0012-riscv-Add-riscv64-support.patch @@ -0,0 +1,33 @@ +From 79a1955551c06966370cc9fee4cec381de27eb54 Mon Sep 17 00:00:00 2001 +From: Mingzheng Xing +Date: Sun, 17 Sep 2023 21:59:48 +0800 +Subject: [PATCH] riscv: Add riscv64 support + +Signed-off-by: Mingzheng Xing +--- + 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 + diff --git a/iotop.spec b/iotop.spec index 23c8022..57985a3 100644 --- a/iotop.spec +++ b/iotop.spec @@ -1,6 +1,6 @@ Name: iotop Version: 0.6 -Release: 24 +Release: 25 Summary: Simple top-like I/O monitor License: GPLv2+ 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 Patch10: 0010-Fix-crash-due-to-syntax-error.patch Patch11: 0011-Use-monotonic-time-to-calculate-durations.patch +Patch12: 0012-riscv-Add-riscv64-support.patch %description 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.* %changelog +* Sun Sep 17 2023 Mingzheng Xing - 0.6-25 +- riscv: Add riscv64 support + * Tue Jul 26 2022 wangzhiqiang - 0.6-24 - DESC: specify the installation path as usr/sbin