!96 同步24.03-LTS分支,支持loongarch
From: @snoweay Reviewed-by: @Lostwayzxc Signed-off-by: @Lostwayzxc
This commit is contained in:
commit
2fb22d29a3
24
0002-Add-sys_sched_setaffinity-define-for-loongarch64.patch
Normal file
24
0002-Add-sys_sched_setaffinity-define-for-loongarch64.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From a8d438800b2b83bf8e64549d827bd4aa95c7562c Mon Sep 17 00:00:00 2001
|
||||
From: zhangzikang <zhangzikang@kylinos.cn>
|
||||
Date: Mon, 13 May 2024 20:23:58 +0800
|
||||
Subject: [PATCH] Add sys_sched_setaffinity define for loongarch64
|
||||
|
||||
---
|
||||
compel/arch/loongarch64/plugins/std/syscalls/syscall_64.tbl | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/compel/arch/loongarch64/plugins/std/syscalls/syscall_64.tbl b/compel/arch/loongarch64/plugins/std/syscalls/syscall_64.tbl
|
||||
index aa6ffb4..6bd19d1 100644
|
||||
--- a/compel/arch/loongarch64/plugins/std/syscalls/syscall_64.tbl
|
||||
+++ b/compel/arch/loongarch64/plugins/std/syscalls/syscall_64.tbl
|
||||
@@ -113,6 +113,7 @@ __NR_pidfd_open 434 sys_pidfd_open (pid_t pid, unsigned int flags)
|
||||
__NR_clone3 435 sys_clone3 (struct clone_args *uargs, size_t size)
|
||||
__NR_openat2 437 sys_openat2 (int dirfd, char *pathname, struct open_how *how, size_t size)
|
||||
__NR_pidfd_getfd 438 sys_pidfd_getfd (int pidfd, int targetfd, unsigned int flags)
|
||||
+__NR_sched_setaffinity 241 sys_sched_setaffinity (int fd, size_t cpusetsize, const cpu_set_t *mask)
|
||||
#__NR_dup2 ! sys_dup2 (int oldfd, int newfd)
|
||||
#__NR_rmdir ! sys_rmdir (const char *name)
|
||||
#__NR_unlink ! sys_unlink (char *pathname)
|
||||
--
|
||||
2.33.0
|
||||
|
||||
12
criu.spec
12
criu.spec
@ -1,6 +1,6 @@
|
||||
Name: criu
|
||||
Version: 3.19
|
||||
Release: 2
|
||||
Release: 3
|
||||
Provides: crtools = %{version}-%{release}
|
||||
Obsoletes: crtools <= 1.0-2
|
||||
Summary: A tool of Checkpoint/Restore in User-space
|
||||
@ -11,13 +11,14 @@ BuildRequires: systemd libnet-devel asciidoc xmlto perl-interpreter libselinux-d
|
||||
BuildRequires: protobuf-devel protobuf-c-devel python3-devel libnl3-devel libcap-devel
|
||||
BuildRequires: python3-pip python3-setuptools python3-wheel python3-protobuf
|
||||
Recommends: tar
|
||||
ExclusiveArch: x86_64 %{arm} ppc64le aarch64 s390x
|
||||
ExclusiveArch: x86_64 %{arm} ppc64le aarch64 s390x loongarch64
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-libs = %{version}-%{release}
|
||||
Obsoletes: %{name}-libs < %{version}-%{release}
|
||||
|
||||
Patch1: 0001-criu-dump-and-restore-cpu-affinity-of-each-thread.patch
|
||||
Patch2: 0003-chore-support-building-without-network.patch
|
||||
Patch2: 0002-Add-sys_sched_setaffinity-define-for-loongarch64.patch
|
||||
Patch3: 0003-chore-support-building-without-network.patch
|
||||
|
||||
%description
|
||||
Checkpoint/Restore in Userspace(CRIU),is a software tool for the linux operating system.
|
||||
@ -103,9 +104,12 @@ chmod 0755 %{buildroot}/run/%{name}/
|
||||
%doc %{_mandir}/man1/{compel.1*,crit.1*,criu-ns.1*,criu-amdgpu-plugin.1*}
|
||||
|
||||
%changelog
|
||||
* Thu Dec 05 2024 weidongkl <weidong@uniontech.com> - 3.19-2
|
||||
* Thu Dec 05 2024 weidongkl <weidong@uniontech.com> - 3.19-3
|
||||
- chore: support building without network
|
||||
|
||||
* Mon May 13 2024 zhangzikang <zhangzikang@kylinos.cn> - 3.19-2
|
||||
- add support for loongarch64
|
||||
|
||||
* Thu Apr 25 2024 snoweay <snoweay@163.com> - 3.19-1
|
||||
- update to version 3.19 from criu.org
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user