iotop/0013-loongarch64-add-loongarch64-support.patch
客串一回 114c85733b
add loongarch64 support
Signed-off-by: 客串一回 <cossbow@qq.com>
2024-08-07 02:45:02 +00:00

33 lines
1008 B
Diff

From 0ab9bc45ab09d98e9d6db082c9ea384093c65c39 Mon Sep 17 00:00:00 2001
From: cenhuilin <cenhuilin@kylinos.cn>
Date: Tue, 2 Jul 2024 16:52:03 +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 ba804c8..5ff5f61 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),
@@ -43,6 +44,7 @@ IOPRIO_GET_ARCH_SYSCALL = [
]
IOPRIO_SET_ARCH_SYSCALL = [
+ ('loongarch64', '*', 30),
('aarch64', '*', 30),
('alpha', '*', 442),
('arm*', '*', 314),
--
2.33.0