34 lines
977 B
Diff
34 lines
977 B
Diff
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
|
|
|