add loongarch64 support
This commit is contained in:
parent
93859b126b
commit
e62cebb84f
33
0012-loongarch64-add-loongarch64-support.patch
Normal file
33
0012-loongarch64-add-loongarch64-support.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From 932711b0c43030068f60d6fc1e1ae3d1aca76777 Mon Sep 17 00:00:00 2001
|
||||
From: cenhuilin <cenhuilin@kylinos.cn>
|
||||
Date: Tue, 2 Jul 2024 17:09:13 +0800
|
||||
Subject: [PATCH] loongarch64: add loongarch64 support
|
||||
|
||||
Signed-off-by: cenhuilin <cenhuilin@kylinos.cn>
|
||||
---
|
||||
iotop/ioprio.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/iotop/ioprio.py b/iotop/ioprio.py
|
||||
index d292add..e6176f1 100644
|
||||
--- a/iotop/ioprio.py
|
||||
+++ b/iotop/ioprio.py
|
||||
@@ -27,6 +27,7 @@ import platform
|
||||
# 'x86_64' but it will use the i386 syscall number, that's why we consider both
|
||||
# the architecture name and the word size.
|
||||
IOPRIO_GET_ARCH_SYSCALL = [
|
||||
+ ('loongarch64', '*', 31),
|
||||
('aarch64', '*', 31),
|
||||
('alpha', '*', 443),
|
||||
('arm*', '*', 315),
|
||||
@@ -42,6 +43,7 @@ IOPRIO_GET_ARCH_SYSCALL = [
|
||||
]
|
||||
|
||||
IOPRIO_SET_ARCH_SYSCALL = [
|
||||
+ ('loongarch64', '*', 30),
|
||||
('aarch64', '*', 30),
|
||||
('alpha', '*', 442),
|
||||
('arm*', '*', 314),
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: iotop
|
||||
Version: 0.6
|
||||
Release: 23
|
||||
Release: 24
|
||||
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-loongarch64-add-loongarch64-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
|
||||
* Tue Jul 2 2024 cenhuilin <cenhuilin@kylinos.cn> - 0.6-24
|
||||
- loongarch64: add loongarch64 support
|
||||
|
||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.6-23
|
||||
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user