From nobody Mon Feb 9 04:01:52 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1640035801338126.7871423635205; Mon, 20 Dec 2021 13:30:01 -0800 (PST) Received: from localhost ([::1]:39932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzQEJ-0006t2-OP for importer@patchew.org; Mon, 20 Dec 2021 16:30:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzLX0-0000Wj-Hp for qemu-devel@nongnu.org; Mon, 20 Dec 2021 11:28:58 -0500 Received: from [2607:f8b0:4864:20::1031] (port=55837 helo=mail-pj1-x1031.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzLWv-0003SX-1k for qemu-devel@nongnu.org; Mon, 20 Dec 2021 11:28:55 -0500 Received: by mail-pj1-x1031.google.com with SMTP id iy13so4449977pjb.5 for ; Mon, 20 Dec 2021 08:28:47 -0800 (PST) Received: from localhost ([2601:646:100:6be:144b:f686:1c59:8e87]) by smtp.gmail.com with UTF8SMTPSA id u2sm6477896pjc.23.2021.12.19.23.21.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Dec 2021 23:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K2EngvWktQzPKI4UWuTrjTke03rnPQ6HHq2KsDFrxlM=; b=BRAuYAi7iQ2NMoH+OV4Yks2Ut/yWuWTmnT8QyhbYttk1791kf5wEMVjFuH7vhYFSDf 2s0r86qjFmYJJVDMUh6zqH9olQUrGHOnKdCKK0LTQtAU8rkHXC11Wb6J4Li80UirTdCJ dqMavfmrLOhZ3o9nqo8gqewnissVFMl8ioS4lwJPp81WNaAgzILfhZ+ZXuy4rXOwdYS9 XooSKytUXr+kVUwgyoIOFMBq00IsMSJslZSrMu66aVX0JTENweEwvL40Ke29YjV3SvXM CE7zTL8hxYzfkU7uhynn7TX+Y1YJ2NfFaKe7d84nthi0RUGWnnd1+1GVb/h66PFJXe2O +rHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K2EngvWktQzPKI4UWuTrjTke03rnPQ6HHq2KsDFrxlM=; b=ZI1w8+IUnH5RlIHKyPn2C0Hlrm/R+clixeYwKLtbcYHkSZJp6/f4Ylyh2lNIxcT8Y3 d+RFa2EaTqUt7BUCdx1cVr5p9WMjSrD4OiiJBp9W2enOj9qKR7HWxNiCDabOlx9Arsyt 2n3BVSi2T0UGlm/t/nfRpuCXpzNVL6r8C5DoQN/881v1iSypGiTPBgNXAyPvTVN1akQ5 bLWQSy9DCL9TU0yU1HWnps0xq0pZxgHm/FOLfmgWHJAS/vp7U8rXzqvCKDi+eqYy0pU7 vzdP/VQvwBgFD0/0cnWodGc4ozlTM9aovPspI5EoJgaf7aH/vk5z7SVX4JLnJNQr2Xu7 Pkyg== X-Gm-Message-State: AOAM532Pge+Riphi/tx307QTW0rmCCUy/Yhe6Ki6y6QPXEifZ+vpNtw4 6JThBTAFEdg6bGSO6JP6wjE1XkRq7cTsbA== X-Google-Smtp-Source: ABdhPJyupNDgYqdpxpEBDZx9PTGmfyvvOgA4Ct98Q2mJHgWzvYZH/+aa6gbjEqg+z4ljO67kUG3o2Q== X-Received: by 2002:a17:902:e805:b0:149:95a:1983 with SMTP id u5-20020a170902e80500b00149095a1983mr5317196plg.9.1639984895327; Sun, 19 Dec 2021 23:21:35 -0800 (PST) From: Tonis Tiigi To: qemu-devel@nongnu.org Subject: [PATCH v2 1/2] linux-user: add sched_getattr support Date: Sun, 19 Dec 2021 23:21:04 -0800 Message-Id: <20211220072105.48860-2-tonistiigi@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20211220072105.48860-1-tonistiigi@gmail.com> References: <20211220072105.48860-1-tonistiigi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1031 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=tonistiigi@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 Dec 2021 16:21:27 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tonis Tiigi , laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1640035803575100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tonis Tiigi --- linux-user/syscall.c | 72 +++++++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 14 ++++++++ 2 files changed, 86 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f1cfcc8104..a447ce1f92 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -339,6 +339,12 @@ _syscall3(int, sys_sched_getaffinity, pid_t, pid, unsi= gned int, len, #define __NR_sys_sched_setaffinity __NR_sched_setaffinity _syscall3(int, sys_sched_setaffinity, pid_t, pid, unsigned int, len, unsigned long *, user_mask_ptr); +#define __NR_sys_sched_getattr __NR_sched_getattr +_syscall4(int, sys_sched_getattr, pid_t, pid, struct target_sched_attr *, = attr, + unsigned int, size, unsigned int, flags); +#define __NR_sys_sched_setattr __NR_sched_setattr +_syscall3(int, sys_sched_setattr, pid_t, pid, struct target_sched_attr *, = attr, + unsigned int, flags); #define __NR_sys_getcpu __NR_getcpu _syscall3(int, sys_getcpu, unsigned *, cpu, unsigned *, node, void *, tcac= he); _syscall4(int, reboot, int, magic1, int, magic2, unsigned int, cmd, @@ -10593,6 +10599,72 @@ static abi_long do_syscall1(void *cpu_env, int num= , abi_long arg1, } case TARGET_NR_sched_getscheduler: return get_errno(sched_getscheduler(arg1)); + case TARGET_NR_sched_getattr: + { + struct target_sched_attr *target_scha; + struct target_sched_attr scha; + if (arg2 =3D=3D 0) { + return -TARGET_EINVAL; + } + if (arg3 > sizeof(scha)) { + arg3 =3D sizeof(scha); + } + ret =3D get_errno(sys_sched_getattr(arg1, &scha, arg3, arg4)); + if (!is_error(ret)) { + target_scha =3D lock_user(VERIFY_WRITE, arg2, arg3, 0); + if (!target_scha) { + return -TARGET_EFAULT; + } + target_scha->size =3D tswap32(scha.size); + target_scha->sched_policy =3D tswap32(scha.sched_policy); + target_scha->sched_flags =3D tswap64(scha.sched_policy); + target_scha->sched_nice =3D tswap32(scha.sched_nice); + target_scha->sched_priority =3D tswap32(scha.sched_priorit= y); + target_scha->sched_runtime =3D tswap64(scha.sched_runtime); + target_scha->sched_deadline =3D tswap64(scha.sched_deadlin= e); + target_scha->sched_period =3D tswap64(scha.sched_period); + if (scha.size > offsetof(struct target_sched_attr, sched_u= til_min)) { + target_scha->sched_util_min =3D tswap32(scha.sched_uti= l_min); + target_scha->sched_util_max =3D tswap32(scha.sched_uti= l_max); + } + unlock_user(target_scha, arg2, arg3); + } + return ret; + } + case TARGET_NR_sched_setattr: + { + struct target_sched_attr *target_scha; + struct target_sched_attr scha; + uint32_t *size; + if (arg2 =3D=3D 0) { + return -TARGET_EINVAL; + } + + if (!lock_user_struct(VERIFY_READ, size, arg2, 1)) { + return -TARGET_EFAULT; + } + unlock_user_struct(size, arg2, 0); + *size =3D tswap32(*size); + + target_scha =3D lock_user(VERIFY_READ, arg2, *size, 1); + if (!target_scha) { + return -TARGET_EFAULT; + } + scha.size =3D *size; + scha.sched_policy =3D tswap32(target_scha->sched_policy); + scha.sched_flags =3D tswap64(target_scha->sched_flags); + scha.sched_nice =3D tswap32(target_scha->sched_nice); + scha.sched_priority =3D tswap32(target_scha->sched_priority); + scha.sched_runtime =3D tswap64(target_scha->sched_runtime); + scha.sched_deadline =3D tswap64(target_scha->sched_deadline); + scha.sched_period =3D tswap64(target_scha->sched_period); + if (scha.size > offsetof(struct target_sched_attr, sched_util_= min)) { + scha.sched_util_min =3D tswap32(target_scha->sched_util_mi= n); + scha.sched_util_max =3D tswap32(target_scha->sched_util_ma= x); + } + unlock_user(target_scha, arg2, 0); + return get_errno(sys_sched_setattr(arg1, &scha, arg3)); + } case TARGET_NR_sched_yield: return get_errno(sched_yield()); case TARGET_NR_sched_get_priority_max: diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 0b13975937..310d6ce8ad 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2914,4 +2914,18 @@ struct target_statx { /* 0x100 */ }; =20 +/* from kernel's include/linux/sched/types.h */ +struct target_sched_attr { + abi_uint size; + abi_uint sched_policy; + abi_ullong sched_flags; + abi_int sched_nice; + abi_uint sched_priority; + abi_ullong sched_runtime; + abi_ullong sched_deadline; + abi_ullong sched_period; + abi_uint sched_util_min; + abi_uint sched_util_max; +}; + #endif --=20 2.32.0 (Apple Git-132) From nobody Mon Feb 9 04:01:52 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1640035640647904.7288425047356; Mon, 20 Dec 2021 13:27:20 -0800 (PST) Received: from localhost ([::1]:35154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzQBj-0003em-OD for importer@patchew.org; Mon, 20 Dec 2021 16:27:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzLMJ-00037A-Bg for qemu-devel@nongnu.org; Mon, 20 Dec 2021 11:17:55 -0500 Received: from [2607:f8b0:4864:20::62f] (port=40686 helo=mail-pl1-x62f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzLMH-0006uv-Ch for qemu-devel@nongnu.org; Mon, 20 Dec 2021 11:17:55 -0500 Received: by mail-pl1-x62f.google.com with SMTP id v19so8485370plo.7 for ; Mon, 20 Dec 2021 08:17:51 -0800 (PST) Received: from localhost ([2601:646:100:6be:144b:f686:1c59:8e87]) by smtp.gmail.com with UTF8SMTPSA id lb12sm4291905pjb.27.2021.12.19.23.21.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Dec 2021 23:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qyfICRpTiU6HSGFfdCMOCPh+MCKMx8Zg1jTgry03f/s=; b=qLtk3QFzttBkmL0f/xgVpmPgrB2NZcFfzj03Z4r5QuHzlANz+UAI9mf5aY3bIjzjmF OtTX1QBknsimqibwXiZR0izZcTa8TQmjIG7iE3Hgljj36pByCh3jcQSR+KTTNcVeTTgm OwDHPpFXON78lu2/DUmpbDdVPmM0fJW+KCaBNWi0VcdAA9rRH6+wcbpihrA9XME2qgvh rZIV/YI/rejX9yfO4ykeurW+V7BrdLGeeECORAcKW5goFZgZ6JJuNrnPHVbhZQDhKRap Q6WndjEEZrTgNAHrtAg4fpMsohJO/NZSy8NbC/6SfP2c/3+gJsK50SRY+c8hoctja8Xk c8kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qyfICRpTiU6HSGFfdCMOCPh+MCKMx8Zg1jTgry03f/s=; b=Yn8ICLClYpGCF6WLgwiv2DJjrGKPPhbF0aYWLE3pUBUmGKnqiAujFTk5Fw1/dRTUbp G3wS6YWyw2T7H5/1+kTy6uKi+JuAB/ymX1nYinSbFsz85yyw7Uz4m6MeNXMd0ckPfiKy g+WsKxfs5+jSUzQXtUrfhephMh2LQ7ttm328JEGuCb+Hxn0gfaFMDLzuZ8AI4R1pTLfe pXuaZGF79cODen20+876XEG8+tjwH+Z88BIkZWPtuwWlTtiTC+EJbVYW+qS1ZmaVHXsC /rcI8r1O8esUCgQsQ/oum2XjNpOS2FKvdm30dPozypUzw1ppEmCoAlH++B8m5S1fIklx OSOw== X-Gm-Message-State: AOAM533eOvGDz3KIw5ztfgZTjye4JR7xe7Wb+zVJXkOLCwH2QL90c7zn 55aOWwP7hRo/WFhB00Yc2L35GlDw1Vg92g== X-Google-Smtp-Source: ABdhPJy2VdRF2G7cQGwlqj4qPB0o7MyuIE2ypRBji4AeVtt5KUmUgCRQCgslwPJ/fIgN88kTzRXCUw== X-Received: by 2002:a17:903:191:b0:148:b9fc:c42b with SMTP id z17-20020a170903019100b00148b9fcc42bmr15385923plg.63.1639984899070; Sun, 19 Dec 2021 23:21:39 -0800 (PST) From: Tonis Tiigi To: qemu-devel@nongnu.org Subject: [PATCH v2 2/2] linux-user: call set/getscheduler set/getparam directly Date: Sun, 19 Dec 2021 23:21:05 -0800 Message-Id: <20211220072105.48860-3-tonistiigi@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20211220072105.48860-1-tonistiigi@gmail.com> References: <20211220072105.48860-1-tonistiigi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::62f (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=tonistiigi@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 Dec 2021 16:21:26 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tonis Tiigi , laurent@vivier.eu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1640035642521100003 Content-Type: text/plain; charset="utf-8" There seems to be difference in syscall and libc definition of these methods and therefore musl does not implement them (1e21e78bf7). Call syscall directly to ensure the behavior of the libc of user application, not the libc that was used to build QEMU. Signed-off-by: Tonis Tiigi Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 40 ++++++++++++++++++++++++++------------- linux-user/syscall_defs.h | 4 ++++ 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a447ce1f92..6adecf745a 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -345,6 +345,17 @@ _syscall4(int, sys_sched_getattr, pid_t, pid, struct t= arget_sched_attr *, attr, #define __NR_sys_sched_setattr __NR_sched_setattr _syscall3(int, sys_sched_setattr, pid_t, pid, struct target_sched_attr *, = attr, unsigned int, flags); +#define __NR_sys_sched_getscheduler __NR_sched_getscheduler +_syscall1(int, sys_sched_getscheduler, pid_t, pid); +#define __NR_sys_sched_setscheduler __NR_sched_setscheduler +_syscall3(int, sys_sched_setscheduler, pid_t, pid, int, policy, + const struct target_sched_param *, param); +#define __NR_sys_sched_getparam __NR_sched_getparam +_syscall2(int, sys_sched_getparam, pid_t, pid, + struct target_sched_param *, param); +#define __NR_sys_sched_setparam __NR_sched_setparam +_syscall2(int, sys_sched_setparam, pid_t, pid, + const struct target_sched_param *, param); #define __NR_sys_getcpu __NR_getcpu _syscall3(int, sys_getcpu, unsigned *, cpu, unsigned *, node, void *, tcac= he); _syscall4(int, reboot, int, magic1, int, magic2, unsigned int, cmd, @@ -10555,30 +10566,32 @@ static abi_long do_syscall1(void *cpu_env, int nu= m, abi_long arg1, return ret; case TARGET_NR_sched_setparam: { - struct sched_param *target_schp; - struct sched_param schp; + struct target_sched_param *target_schp; + struct target_sched_param schp; =20 if (arg2 =3D=3D 0) { return -TARGET_EINVAL; } - if (!lock_user_struct(VERIFY_READ, target_schp, arg2, 1)) + if (!lock_user_struct(VERIFY_READ, target_schp, arg2, 1)) { return -TARGET_EFAULT; + } schp.sched_priority =3D tswap32(target_schp->sched_priority); unlock_user_struct(target_schp, arg2, 0); - return get_errno(sched_setparam(arg1, &schp)); + return get_errno(sys_sched_setparam(arg1, &schp)); } case TARGET_NR_sched_getparam: { - struct sched_param *target_schp; - struct sched_param schp; + struct target_sched_param *target_schp; + struct target_sched_param schp; =20 if (arg2 =3D=3D 0) { return -TARGET_EINVAL; } - ret =3D get_errno(sched_getparam(arg1, &schp)); + ret =3D get_errno(sys_sched_getparam(arg1, &schp)); if (!is_error(ret)) { - if (!lock_user_struct(VERIFY_WRITE, target_schp, arg2, 0)) + if (!lock_user_struct(VERIFY_WRITE, target_schp, arg2, 0))= { return -TARGET_EFAULT; + } target_schp->sched_priority =3D tswap32(schp.sched_priorit= y); unlock_user_struct(target_schp, arg2, 1); } @@ -10586,19 +10599,20 @@ static abi_long do_syscall1(void *cpu_env, int nu= m, abi_long arg1, return ret; case TARGET_NR_sched_setscheduler: { - struct sched_param *target_schp; - struct sched_param schp; + struct target_sched_param *target_schp; + struct target_sched_param schp; if (arg3 =3D=3D 0) { return -TARGET_EINVAL; } - if (!lock_user_struct(VERIFY_READ, target_schp, arg3, 1)) + if (!lock_user_struct(VERIFY_READ, target_schp, arg3, 1)) { return -TARGET_EFAULT; + } schp.sched_priority =3D tswap32(target_schp->sched_priority); unlock_user_struct(target_schp, arg3, 0); - return get_errno(sched_setscheduler(arg1, arg2, &schp)); + return get_errno(sys_sched_setscheduler(arg1, arg2, &schp)); } case TARGET_NR_sched_getscheduler: - return get_errno(sched_getscheduler(arg1)); + return get_errno(sys_sched_getscheduler(arg1)); case TARGET_NR_sched_getattr: { struct target_sched_attr *target_scha; diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 310d6ce8ad..28b9fe9a47 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2928,4 +2928,8 @@ struct target_sched_attr { abi_uint sched_util_max; }; =20 +struct target_sched_param { + abi_int sched_priority; +}; + #endif --=20 2.32.0 (Apple Git-132)