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		122	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

